From f32cd80ef232df015f994fb98102b1176bf50326 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Mon, 21 Sep 2026 11:54:19 +0200 Subject: [PATCH 1/2] Update error message --- .../kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt index 8f386bb..2098df9 100644 --- a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt +++ b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt @@ -67,10 +67,10 @@ 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. + 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 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()) From 596ba9d25a07da665ffb6f9612d5abdb51035f68 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Mon, 21 Sep 2026 12:18:50 +0200 Subject: [PATCH 2/2] Update nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt Co-authored-by: Adam <897017+aSemy@users.noreply.github.com> --- .../kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt index 2098df9..008cb0f 100644 --- a/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt +++ b/nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt @@ -68,7 +68,7 @@ internal abstract class DefaultNmcpAggregationExtension(private val project: Pro check(!allNames.contains(it.name.lowercase())) { """ 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). + 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/847 for more details. """.trimIndent()