Skip to content

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Nov 12, 2024

No description provided.

@elharo elharo changed the title [MDEP-776] Warn when overwriting file [MDEP-776] Warn when multiple dependencis have same file name Nov 15, 2024
@elharo elharo marked this pull request as ready for review November 15, 2024 15:11
@elharo elharo changed the title [MDEP-776] Warn when multiple dependencis have same file name [MDEP-776] Warn when multiple dependencies have the same file name Nov 15, 2024
Copy link
Contributor

@Bukama Bukama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you also updated so much documentation / Javadoc!
I only have one small, little question, but that only might be a personal nuance.

So non-binding approval by me.

for (Map.Entry<String, Integer> entry : copies.entrySet()) {
if (entry.getValue() > 1) {
getLog().warn("Multiple files with the name " + entry.getKey() + " in the dependency tree.");
getLog().warn(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this new line on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird but that's what spotless produces

if (entry.getValue() > 1) {
getLog().warn("Multiple files with the name " + entry.getKey() + " in the dependency tree.");
getLog().warn(
"Not all jars will be available. Consider using prependGroupId, useSubDirectoryPerArtifact, or useRepositoryLayout.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JARs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@elharo
Copy link
Contributor Author

elharo commented Nov 24, 2024

ping

<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>5</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need a parent for test ... if yes - should be something newer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really. Removed.

@elharo elharo merged commit 6fa6604 into master Dec 6, 2024
51 checks passed
@elharo elharo deleted the warn branch December 6, 2024 13:34
@jira-importer
Copy link

Resolve #1283

@slawekjaranowski slawekjaranowski added the enhancement New feature or request label Sep 13, 2025
@slawekjaranowski slawekjaranowski added this to the 3.9.0 milestone Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants