Skip to content

Commit 71c3e1f

Browse files
authored
Settings plugin: only apply to subprojects if the maven-publish plugin is applied (#196)
1 parent b2b8599 commit 71c3e1f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎nmcp/src/main/kotlin/nmcp/plugins.kt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ internal fun nmcpSettings(settings: Settings) {
3636
project.dependencies.add(nmcpConsumerConfigurationName, project.dependencies.create(it))
3737
}
3838
} else {
39-
project.pluginManager.apply("com.gradleup.nmcp")
39+
project.pluginManager.withPlugin("maven-publish") {
40+
project.pluginManager.apply("com.gradleup.nmcp")
41+
}
4042
}
4143
}
4244
}

0 commit comments

Comments
 (0)