Skip to content

Make it an error to not handle duplicates explicitly#15759

Merged
melix merged 5 commits intomasterfrom
cc/exec/issue-15594
Jan 15, 2021
Merged

Make it an error to not handle duplicates explicitly#15759
melix merged 5 commits intomasterfrom
cc/exec/issue-15594

Conversation

@melix
Copy link
Copy Markdown
Contributor

@melix melix commented Jan 12, 2021

Previous Gradle releases used a default 'include' strategy for
copy specs: if a duplicate was found, then Gradle would silently
include the duplicate, potentially overwriting the previous entry.

In Gradle 5, we introduced a warning whenever duplicates are found
and that no explicit deduplication strategy is set. With Gradle 7,
this now becomes an error.

Closes #15594

@melix melix added from:member a:chore Minor issue without significant impact labels Jan 12, 2021
@melix melix added this to the 7.0 RC1 milestone Jan 12, 2021
@melix melix self-assigned this Jan 12, 2021
Previous Gradle releases used a default 'include' strategy for
copy specs: if a duplicate was found, then Gradle would silently
include the duplicate, potentially overwriting the previous entry.

In Gradle 5, we introduced a warning whenever duplicates are found
and that no explicit deduplication strategy is set. With Gradle 7,
this now becomes an error.

Closes #15594
@melix melix force-pushed the cc/exec/issue-15594 branch from 73cf6f8 to a1de6d0 Compare January 13, 2021 09:05
@gradle gradle deleted a comment from melix Jan 13, 2021
@gradle gradle deleted a comment from melix Jan 13, 2021
@melix
Copy link
Copy Markdown
Contributor Author

melix commented Jan 13, 2021

@bot-gradle test this

@gradle gradle deleted a comment from melix Jan 13, 2021
@bot-gradle
Copy link
Copy Markdown
Collaborator

OK, I've already cancelled the old build and triggered a new ReadyForMerge build for you.

@melix
Copy link
Copy Markdown
Contributor Author

melix commented Jan 14, 2021

@bot-gradle test this

@gradle gradle deleted a comment from melix Jan 14, 2021
@bot-gradle
Copy link
Copy Markdown
Collaborator

OK, I've already triggered ReadyForMerge build for you.

Copy link
Copy Markdown
Member

@wolfs wolfs left a comment

Choose a reason for hiding this comment

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

The change looks good overall. I left some comments.

Copy link
Copy Markdown
Member

@wolfs wolfs left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:chore Minor issue without significant impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail for duplicates in copy specs for default duplicates strategy

3 participants