update buildscript

This commit is contained in:
FalsePattern committed 2023-05-23 14:08:26 +02:00
1 parent 750626cb04
commit 173e60ac58
1 file changed
+6 -4
+6 -4
View File
@@ -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")
}