diff --git a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt index 4374d27..0bba140 100644 --- a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt +++ b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt @@ -67,10 +67,11 @@ internal abstract class DefaultNmcpAggregationExtension(private val project: Pro project.allprojects { check(!allNames.contains(it.name.lowercase())) { """ - Nmcp: some projects have the same name: '${it.name}'. This creates issues when resolving the aggregation. - You can usually resolve this error by renaming your projects (including possibly your root project). + + Nmcp: some projects have the same name: '${it.name}'. If your projects also have the same groupId, this can create issues when resolving the aggregation. + You can usually resolve this error by renaming your projects (including possibly your root project), or setting a distinct `group` in the colliding projects. Or you can disable this check by calling `allowDuplicateProjectNames.set(true)`. - See https://github.com/gradle/gradle/issues/36167 for more details. + See https://github.com/gradle/gradle/issues/847 for more details. """.trimIndent() } allNames.add(it.name.lowercase())