Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Sep 20, 2017
1 parent fbcc6dc commit 9271787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ class ReleasePlugin implements Plugin<Project> {
}
} else {
project.version = project.rootProject.version
}

def isParent = project.rootProject.subprojects.any { it.parent == project }
if (!isParent) {
project.plugins.withType(JavaPlugin) {
project.rootProject.tasks.release.dependsOn project.tasks.build
}
Expand Down

0 comments on commit 9271787

Please sign in to comment.