From 9271787e291059a619d374ecb8c03bf461265933 Mon Sep 17 00:00:00 2001 From: Danny Thomas Date: Wed, 20 Sep 2017 13:10:07 -0700 Subject: [PATCH] Fix test failure --- src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy b/src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy index 84aa724..1aa790a 100644 --- a/src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy +++ b/src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy @@ -160,6 +160,10 @@ class ReleasePlugin implements Plugin { } } 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 }