Skip to content

Commit c8192ef

Browse files
committed
Merge 1.19.2 into 1.19.4
2 parents 96a8353 + 6ed3c5d commit c8192ef

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,20 @@ configure(subprojects.findAll {it.name == "forge" || it.name == "fabric"}) {
190190
apply plugin: 'com.matthewprenger.cursegradle'
191191
apply plugin: 'com.modrinth.minotaur'
192192

193+
def copyJarNameConsistent = tasks.register('copyJarNameConsistent', Copy) {
194+
from remapJar // shortcut for createJar.outputs.files
195+
into project.file("build/libs")
196+
rename { name -> "modernfix-" + project.name + "-latest.jar" }
197+
}
198+
199+
def copyJarToBin = tasks.register('copyJarToBin', Copy) {
200+
from remapJar // shortcut for createJar.outputs.files
201+
into rootProject.file("bin")
202+
mustRunAfter "copyJarNameConsistent"
203+
}
204+
205+
tasks.build.dependsOn(copyJarToBin, copyJarNameConsistent)
206+
193207
def isBeta = project.version.toString().contains("beta")
194208

195209
curseforge {

fabric/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ remapJar {
6565
classifier null
6666
}
6767

68-
task copyJarToBin(type: Copy) {
69-
from remapJar // shortcut for createJar.outputs.files
70-
into rootProject.file("bin")
71-
}
72-
73-
tasks.build.dependsOn(copyJarToBin)
74-
7568
jar {
7669
classifier "dev"
7770
}

forge/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ remapJar {
7070
classifier null
7171
}
7272

73-
task copyJarToBin(type: Copy) {
74-
from remapJar // shortcut for createJar.outputs.files
75-
into rootProject.file("bin")
76-
}
77-
78-
tasks.build.dependsOn(copyJarToBin)
79-
8073
jar {
8174
classifier "dev"
8275
manifest {

0 commit comments

Comments
 (0)