v0.9.3: fixed desktop:release not working after gradle 7.0

This commit is contained in:
Evan Debenham 2021-04-27 20:49:56 -04:00
parent 5f45faaa30
commit f52ced5e74

View File

@ -35,6 +35,8 @@ task compileForRelease(dependsOn: classes, type: JavaCompile){
}
task release(dependsOn: compileForRelease, type: Jar) {
//FIXME this is now needed as of gradle 7.0, due to our weird sourceSets setup. Should see if there's a better way to do this
setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
from sourceSets.main.output
from { sourceSets.release.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } }
from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } }