-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: subproject with same name as root (#222)
In multi-module projects filter subprojects based on unique the path not name
- Loading branch information
ola magdziarek
authored
Sep 2, 2022
1 parent
79a8a08
commit 3ea5ec1
Showing
8 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Multi-module project with a nested subproject with the same name as root | ||
|
||
The following dep-tree was generated using the command: `./gradlew dependencies` | ||
|
||
```s | ||
+--- com.google.guava:guava:30.1.1-jre | ||
| +--- com.google.guava:failureaccess:1.0.1 | ||
| +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava | ||
| +--- com.google.code.findbugs:jsr305:3.0.2 | ||
| +--- org.checkerframework:checker-qual:3.8.0 | ||
| +--- com.google.errorprone:error_prone_annotations:2.5.1 | ||
| \--- com.google.j2objc:j2objc-annotations:1.3 | ||
\--- joda-time:joda-time:2.2 | ||
``` |
12 changes: 12 additions & 0 deletions
12
test/fixtures/subproject-with-same-name-as-root/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
plugins { | ||
id 'application' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'com.google.guava:guava:30.1.1-jre' | ||
implementation "joda-time:joda-time:2.2" | ||
} |
Empty file.
12 changes: 12 additions & 0 deletions
12
.../subproject-with-same-name-as-root/greeter/subproject-with-same-name-as-root/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
plugins { | ||
id 'application' | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation "org.apache.struts:struts2-spring-plugin:2.3.1" | ||
} |
11 changes: 11 additions & 0 deletions
11
test/fixtures/subproject-with-same-name-as-root/lib/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile 'org.apache.commons:commons-lang3:3.12.0' | ||
} |
2 changes: 2 additions & 0 deletions
2
test/fixtures/subproject-with-same-name-as-root/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = 'subproject-with-same-name-as-root' | ||
include ':lib', ':greeter', ':greeter:subproject-with-same-name-as-root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters