From 888e870381a83bc264988b239cb10f401576aec5 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 21 Dec 2024 23:36:58 -0500 Subject: [PATCH 1/2] fix - jitpack hash. --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f266c49..3704ae3 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,10 @@ plugins { String group = System.getenv("GROUP") ?: properties["group"] 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() From 557d04b855c70ce673c8a71e56db1784f616160f Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 21 Dec 2024 23:44:18 -0500 Subject: [PATCH 2/2] fix - gradle issues. --- build.gradle | 2 +- gradle.properties | 6 +++--- settings.gradle | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 3704ae3..f83895c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ 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 = ""; if (System.getenv("JITPACK") != "true") { 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