Fix task dependency for collectScreenshots

This commit is contained in:
Edwin Jakobs
2020-04-22 23:08:00 +02:00
parent 3e24b4c22c
commit a28f298690

View File

@@ -129,10 +129,11 @@ allprojects {
}
task collectScreenshots(dependsOn: 'classes') {
task collectScreenshots {
doFirst {
for (sub in project.subprojects) {
if (sub.sourceSets.hasProperty("demo")) {
def demoProjects = project.subprojects.findAll { it.sourceSets.hasProperty("demo") }
for (sub in demoProjects) {
def set = sub.sourceSets.demo
def ucl = new URLClassLoader(set.runtimeClasspath.collect { it.toURI().toURL() } as URL[])
for (x in set.output) {
@@ -159,5 +160,7 @@ task collectScreenshots(dependsOn: 'classes') {
}
}
}
}
}
collectScreenshots.dependsOn {
project.subprojects.findAll { it.sourceSets.hasProperty("demo") }.collect { it.tasks.demoClasses }
}