Fix task dependency for collectScreenshots
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user