Skip to content

Commit

Permalink
fix: don't use bad naming for files on publish and CF
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Feb 26, 2023
1 parent 274f4c1 commit 5d0ee97
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d0ee97

Please sign in to comment.