Skip to content

Commit

Permalink
tweaking task ordering/dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ric Klaren committed Jun 6, 2016
1 parent dfb3ce0 commit 3ff81dd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,22 @@ buildscript {
apply plugin: 'xebialabs.root.opinions'
apply plugin: 'xebialabs.dependency'

allprojects {
allprojects { p ->
group = 'com.xebialabs.deployit.temp4test'

apply plugin: 'idea'
p.apply plugin: 'idea'

p.tasks.findByName('uploadArchives')?.with { Task uploadTask ->
log.info("Release task ${p.tasks.release} depends on ${uploadTask}")
rootProject.tasks.release.dependsOn uploadTask
}
p.tasks.findAll({ it.name == 'build' }).each { Task buildTask ->
log.info("${p.tasks.release} depends on ${buildTask}")
rootProject.tasks.releases.dependsOn buildTask
}
}



println "Root project done"

0 comments on commit 3ff81dd

Please sign in to comment.