Skip to content

Commit 9271787

Browse files
committed
Fix test failure
1 parent fbcc6dc commit 9271787

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy

+4
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ class ReleasePlugin implements Plugin<Project> {
160160
}
161161
} else {
162162
project.version = project.rootProject.version
163+
}
164+
165+
def isParent = project.rootProject.subprojects.any { it.parent == project }
166+
if (!isParent) {
163167
project.plugins.withType(JavaPlugin) {
164168
project.rootProject.tasks.release.dependsOn project.tasks.build
165169
}

0 commit comments

Comments
 (0)