Skip to content

Commit

Permalink
Revert "Document duplicate project id detection"
Browse files Browse the repository at this point in the history
This reverts commit 27add0e.
  • Loading branch information
ljacomet committed Feb 21, 2020
1 parent 3e60f25 commit 920d4d1
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ For example, when the library does not support the required Java version.
The practical effect is that now all <<java_platform_plugin.adoc#sec:java_platform_consumption,platform dependencies>> have to be declared as such.
Before, platform dependencies also worked, accidentally, when the `platform()` keyword was omitted for local platforms or platforms published with Gradle Module Metadata.

==== Duplicate project names may cause publication to fail

A duplicate publication identifier detector was added to prevent different projects in a multi project to publish modules with the same `groupId` and `artifactId` coordinates.
This was required following a fix done to disambiguate projects https://github.com/gradle/gradle/issues/847[with the same name] for dependency resolution.

In some cases, the check can prove too eager and may require an action from the build author.

----
Project :server:common has the same (groupId, artifactId) as :client:common.
You should set both the groupId and artifactId of the publication or opt out by adding the org.gradle.dependency.duplicate.project.detection system property to 'false'.
----

If your build fails with a message as above, make sure you configure *both the `groupId` and `artifactId` in the publication configuration* to resolve ambiguities.

As a _temporary fix_, you can also disable the new check by setting `-Dorg.gradle.dependency.duplicate.project.detection=false` on the CLI or by adding `systemProp.org.gradle.dependency.duplicate.project.detection=false` to `gradle.properties`.
This option will be removed in future versions.

==== Properties from project root `gradle.properties` are shared with `buildSrc` and included builds

Before Gradle 6.2, Gradle and project properties set in the `gradle.properties` file in your project root directory were not shared with the `buildSrc` build or included builds.
Expand Down

0 comments on commit 920d4d1

Please sign in to comment.