More build script stuff

This commit is contained in:
JFronny 2021-10-03 13:22:45 +02:00
parent 06442bcad3
commit a09305773d
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
3 changed files with 3 additions and 7 deletions

View File

@ -9,7 +9,7 @@ before_script:
build_test:
stage: deploy
script:
- gradle --build-cache build publish -PpublicMaven
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
- cp build/libs/* ./
- rm *-maven.jar *-sources.jar *-sources-dev.jar
- mv *-dev.jar dev.zip
@ -25,7 +25,7 @@ deploy:
stage: deploy
when: manual
script:
- gradle --build-cache publish modrinth curseforge -Ptype=release -PpublicMaven
- gradle --build-cache publish modrinth curseforge -PpublicMaven
only:
- master

View File

@ -10,11 +10,8 @@ plugins {
}
def ENV = System.getenv()
ext.isRelease = project.hasProperty('type') && project.getProperty('type').equals("release")
ext.isPublicMaven = project.hasProperty('publicMaven')
version = "$project.mod_version" + (ext.isRelease
? (ENV.CI_PIPELINE_ID ? "+" + ENV.CI_PIPELINE_ID : "")
: "")
version = "$project.mod_version" + (project.hasProperty('pipeline') ? "+" + project.getProperty('pipeline') : "")
static Node getOrCreateNode(Node node, String name) {
Node dependencies = null

View File

@ -12,7 +12,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.function.Predicate;
import java.util.function.Supplier;
public class HookImplementation {
private static boolean disabled = false;