Parallel gradle builds + explicit output directory
This commit is contained in:
parent
f265e4daf7
commit
0671b45185
4 changed files with 21 additions and 1 deletions
17
build.gradle
17
build.gradle
|
|
@ -66,6 +66,23 @@ dependencies {
|
|||
|
||||
shadowJar {
|
||||
relocate 'dev.frankheijden.minecraftreflection', dependencyDir + '.minecraftreflection'
|
||||
archiveFileName = "${archiveBaseName.orNull}-${archiveVersion.orNull}.${archiveExtension.orNull}"
|
||||
}
|
||||
|
||||
def outputTasks() {
|
||||
["shadowJar", ":Bukkit:shadowJar", ":Bungee:shadowJar"].stream().map({ tasks.findByPath(it) })
|
||||
}
|
||||
|
||||
task copyJars(type: Copy) {
|
||||
outputTasks().forEach({ from(it) })
|
||||
rename '(.*)-all.jar', '$1.jar'
|
||||
into file('jars')
|
||||
}
|
||||
|
||||
task cleanJars() {
|
||||
delete file('jars')
|
||||
}
|
||||
|
||||
clean.dependsOn cleanJars
|
||||
build.dependsOn shadowJar
|
||||
build.dependsOn copyJars
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue