diff --git a/build.gradle b/build.gradle index f266c49..f83895c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,11 +5,13 @@ plugins { id 'maven-publish' // for jitpack.io } -String group = System.getenv("GROUP") ?: properties["group"] +String group = System.getenv("GROUP") ?: properties["group"] ?: "com.github.server-utilities" String commitHash = ""; -rootProject.group = group -rootProject.version = properties["version"] + "." + commitHash +if (System.getenv("JITPACK") != "true") { + rootProject.group = group + rootProject.version = properties["version"] + "." + commitHash +} repositories { mavenCentral() diff --git a/gradle.properties b/gradle.properties index 2f36118..fa8f0f0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,6 +7,6 @@ org.gradle.caching = true org.gradle.vfs.watch = false # Other properties -name = TheBase -group = com.github.server-utilities -version = 1.0 \ No newline at end of file +#name = TheBase +#group = com.github.server-utilities +#version = 1.0 \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 09eb9f5..5999378 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,5 @@ -String artifact = System.getenv('ARTIFACT') ?: properties['name'] +String artifact = System.getenv('ARTIFACT') ?: properties['name'] ?: rootProject.name -rootProject.name = artifact \ No newline at end of file +if (System.getenv("JITPACK") != "true") { + rootProject.name = artifact +} \ No newline at end of file