Fix task dependency for collectScreenshots
This commit is contained in:
@@ -129,10 +129,11 @@ allprojects {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task collectScreenshots(dependsOn: 'classes') {
|
|
||||||
|
task collectScreenshots {
|
||||||
doFirst {
|
doFirst {
|
||||||
for (sub in project.subprojects) {
|
def demoProjects = project.subprojects.findAll { it.sourceSets.hasProperty("demo") }
|
||||||
if (sub.sourceSets.hasProperty("demo")) {
|
for (sub in demoProjects) {
|
||||||
def set = sub.sourceSets.demo
|
def set = sub.sourceSets.demo
|
||||||
def ucl = new URLClassLoader(set.runtimeClasspath.collect { it.toURI().toURL() } as URL[])
|
def ucl = new URLClassLoader(set.runtimeClasspath.collect { it.toURI().toURL() } as URL[])
|
||||||
for (x in set.output) {
|
for (x in set.output) {
|
||||||
@@ -160,4 +161,6 @@ task collectScreenshots(dependsOn: 'classes') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
collectScreenshots.dependsOn {
|
||||||
|
project.subprojects.findAll { it.sourceSets.hasProperty("demo") }.collect { it.tasks.demoClasses }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user