File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,20 @@ configure(subprojects.findAll {it.name == "forge" || it.name == "fabric"}) {
182182 apply plugin : ' com.matthewprenger.cursegradle'
183183 apply plugin : ' com.modrinth.minotaur'
184184
185+ def copyJarNameConsistent = tasks. register(' copyJarNameConsistent' , Copy ) {
186+ from remapJar // shortcut for createJar.outputs.files
187+ into project. file(" build/libs" )
188+ rename { name -> " modernfix-" + project. name + " -latest.jar" }
189+ }
190+
191+ def copyJarToBin = tasks. register(' copyJarToBin' , Copy ) {
192+ from remapJar // shortcut for createJar.outputs.files
193+ into rootProject. file(" bin" )
194+ mustRunAfter " copyJarNameConsistent"
195+ }
196+
197+ tasks. build. dependsOn(copyJarToBin, copyJarNameConsistent)
198+
185199 def isBeta = project. version. toString(). contains(" beta" )
186200
187201 curseforge {
Original file line number Diff line number Diff 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-
7568jar {
7669 classifier " dev"
7770}
Original file line number Diff line number Diff 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-
8073jar {
8174 classifier " dev"
8275 manifest {
You can’t perform that action at this time.
0 commit comments