Skip to content

Commit 173e60a

Browse files
committed
update buildscript
1 parent 750626c commit 173e60a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1656003793falsepattern62
1+
//version: 1656003793falsepattern67
22
/*
33
DO NOT CHANGE THIS FILE!
44
@@ -670,6 +670,8 @@ def getCredentials = {
670670
}
671671

672672
//Publishing
673+
tasks.publish.dependsOn(build)
674+
673675
publishing {
674676
publications {
675677
maven(MavenPublication) {
@@ -753,7 +755,7 @@ if (curseForgeProjectId != "" && System.getenv("CURSEFORGE_TOKEN") != null) {
753755
addGameVersion project.minecraft.version
754756
addGameVersion "Forge"
755757
mainArtifact(jar) {
756-
displayName = "$modName version: $modVersion"
758+
displayName = "$modName $modVersion"
757759
}
758760
}
759761
options {
@@ -1067,7 +1069,7 @@ def deobf(String sourceURL, String rawFileName) {
10671069
}
10681070

10691071
download.run {
1070-
src "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/com/github/parker8283/BON2/$bon2Version-CUSTOM/BON2-$bon2Version-CUSTOM-all.jar"
1072+
src "https://github.com/FalsePattern/ExampleMod1.7.10/raw/main/blobs/BON2-2.5.1.jar"
10711073
dest bon2File
10721074
quiet true
10731075
overwrite false
@@ -1081,7 +1083,7 @@ def deobf(String sourceURL, String rawFileName) {
10811083
}
10821084

10831085
exec {
1084-
commandLine 'java', '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch'
1086+
commandLine Paths.get(System.getProperty("java.home"), "bin", "java").toAbsolutePath().toString(), '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch'
10851087
workingDir bon2Dir
10861088
standardOutput = new FileOutputStream("${deobfFile}.log")
10871089
}

0 commit comments

Comments
 (0)