Skip to content

Commit

Permalink
Avoid resolving task dependencies (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdai8 committed Oct 8, 2020
1 parent a728917 commit bf7f73d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,12 @@ class ComposeSettings {
void isRequiredByCore(Task task, boolean fromConfigure) {
task.dependsOn upTask
task.finalizedBy downTask
task.getTaskDependencies().getDependencies(task)
.findAll { Task.class.isAssignableFrom(it.class) && ((Task) it).name.toLowerCase().contains('classes') }
.each { dep ->
project.tasks.findAll { Task.class.isAssignableFrom(it.class) && ((Task) it).name.toLowerCase().contains('classes') }
.each { classesTask ->
if (fromConfigure) {
upTask.get().shouldRunAfter dep
upTask.get().shouldRunAfter classesTask
} else {
upTask.configure { it.shouldRunAfter dep }
upTask.configure { it.shouldRunAfter classesTask }
}
}
if (task instanceof ProcessForkOptions) task.doFirst { exposeAsEnvironment(task as ProcessForkOptions) }
Expand Down

0 comments on commit bf7f73d

Please sign in to comment.