From 173e60ac58af855b17833aa548c2f125727cb095 Mon Sep 17 00:00:00 2001 From: FalsePattern <30945458+FalsePattern@users.noreply.github.com> Date: Tue, 23 May 2023 14:08:26 +0200 Subject: [PATCH] update buildscript --- build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index a0507c7..e4697bc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1656003793falsepattern62 +//version: 1656003793falsepattern67 /* DO NOT CHANGE THIS FILE! @@ -670,6 +670,8 @@ def getCredentials = { } //Publishing +tasks.publish.dependsOn(build) + publishing { publications { maven(MavenPublication) { @@ -753,7 +755,7 @@ if (curseForgeProjectId != "" && System.getenv("CURSEFORGE_TOKEN") != null) { addGameVersion project.minecraft.version addGameVersion "Forge" mainArtifact(jar) { - displayName = "$modName version: $modVersion" + displayName = "$modName $modVersion" } } options { @@ -1067,7 +1069,7 @@ def deobf(String sourceURL, String rawFileName) { } download.run { - src "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/com/github/parker8283/BON2/$bon2Version-CUSTOM/BON2-$bon2Version-CUSTOM-all.jar" + src "https://github.com/FalsePattern/ExampleMod1.7.10/raw/main/blobs/BON2-2.5.1.jar" dest bon2File quiet true overwrite false @@ -1081,7 +1083,7 @@ def deobf(String sourceURL, String rawFileName) { } exec { - commandLine 'java', '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch' + commandLine Paths.get(System.getProperty("java.home"), "bin", "java").toAbsolutePath().toString(), '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch' workingDir bon2Dir standardOutput = new FileOutputStream("${deobfFile}.log") }