0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Prevent Loom from moving stuff to 'devlibs'

This commit is contained in:
Alexander01998 2022-04-22 18:15:21 +02:00
parent 270511228b
commit 854052413a

View File

@ -78,3 +78,14 @@ publishing {
// retrieving dependencies.
}
}
afterEvaluate {
// Loom 0.11's devlibs folder messes with my other scripts,
// so I'm moving these files back to the old location.
tasks.named("remapJar") {
doLast {
ant.move(file:"${project.buildDir}/devlibs/${archivesBaseName}-${version}-dev.jar", tofile:"${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
ant.move(file:"${project.buildDir}/devlibs/${archivesBaseName}-${version}-sources.jar", tofile:"${project.buildDir}/libs/${archivesBaseName}-${version}-sources-dev.jar")
}
}
}