From 5d0ee97d094e5fbc1676b03bc0f328f7a27b0df8 Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Sun, 26 Feb 2023 11:04:58 +0000 Subject: [PATCH] fix: don't use bad naming for files on publish and CF --- build.gradle | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 54a6e921..24e14117 100644 --- a/build.gradle +++ b/build.gradle @@ -17,19 +17,12 @@ plugins { apply plugin: 'net.minecraftforge.gradle' -version = "$version" +def ENV = System.getenv() +version = "${version}-build.${ENV.GITHUB_RUN_NUMBER ?: 9999}+mc${minecraft_version}" group = 'com.direwolf20.buildinggadgets' archivesBaseName = "buildinggadgets-${minecraft_version}" def forge_major = forge_version.tokenize('.')[0] - -// Used for CI/CD -def ENV = System.getenv() - -if (ENV.GITHUB_RUN_NUMBER) { - version = version + "-SNAPSHOT-" + "${ENV.GITHUB_RUN_NUMBER}" -} - java.toolchain.languageVersion = JavaLanguageVersion.of(8) minecraft {