Skip to content

Commit 13166f5

Browse files
martinbonninaSemy
andauthored
Update error message for duplicate project names (#283)
* Update error message * Update nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt Co-authored-by: Adam <897017+aSemy@users.noreply.github.com> --------- Co-authored-by: Adam <897017+aSemy@users.noreply.github.com>
1 parent a1fce3f commit 13166f5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎nmcp/src/main/kotlin/nmcp/internal/DefaultNmcpAggregationExtension.kt‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ internal abstract class DefaultNmcpAggregationExtension(private val project: Pro
6767
project.allprojects {
6868
check(!allNames.contains(it.name.lowercase())) {
6969
"""
70-
Nmcp: some projects have the same name: '${it.name}'. This creates issues when resolving the aggregation.
71-
You can usually resolve this error by renaming your projects (including possibly your root project).
70+
71+
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.
72+
You can usually resolve this error by renaming your projects (including possibly your root project), or setting a distinct `group` in the colliding projects.
7273
Or you can disable this check by calling `allowDuplicateProjectNames.set(true)`.
73-
See https://github.com/gradle/gradle/issues/36167 for more details.
74+
See https://github.com/gradle/gradle/issues/847 for more details.
7475
""".trimIndent()
7576
}
7677
allNames.add(it.name.lowercase())

0 commit comments

Comments
 (0)