Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ric Klaren committed Jun 6, 2016
1 parent 77f0055 commit f685750
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ allprojects { p ->
pluginManager.withPlugin 'org.ajoberstar.release-base', {
subprojects { p ->
p.tasks.all { t ->
def releaseTask = rootProject.tasks.release
if (t.name == 'uploadArchives') {
logger.info("Release task ${p.tasks.release} depends on ${t}")
rootProject.tasks['release'].dependsOn t
logger.info("Release task ${releaseTask} depends on ${t}")
releaseTask.dependsOn t
}
}
p.tasks.findAll({ it.name == 'build' }).each { Task buildTask ->
logger.info("${p.tasks.release} depends on ${buildTask}")
rootProject.tasks['release'].dependsOn buildTask
logger.info("${releaseTask} depends on ${buildTask}")
releaseTask.dependsOn buildTask
}
}
}
Expand Down

0 comments on commit f685750

Please sign in to comment.