Commit 363f555
authored
Limit name-based repo duplicate check to URL-less repositories (#7245)
The name-based fallback added in #7230 incorrectly blocks adding a
second `maven {}` or `ivy {}` repository with a different URL, since
it only checks the method name. Gate the check on `url == null` so it
only applies to uniquely-named repositories like `gradlePluginPortal`,
`mavenCentral`, `mavenLocal`, and `google`.1 parent c7d548a commit 363f555
2 files changed
Lines changed: 32 additions & 1 deletion
File tree
- rewrite-gradle/src
- main/java/org/openrewrite/gradle/plugins
- test/java/org/openrewrite/gradle/plugins
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
645 | 676 | | |
646 | 677 | | |
647 | 678 | | |
| |||
0 commit comments