-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Expected and Results
In a Gradle project with single submodule, where both rootProject.name and included submodule itself have the same name, build/nmcp/zip/aggregation.zip is not created on ./gradlew nmcpZipAggregation task.
The project layout looks like this:
project-name/
├── buildSrc/
│ ├── src/
│ └── build.gradle.kts
├── gradle/
│ ├── wrapper/
│ └── libs.versions.toml
├── project-name/
│ ├── src/
│ └── build.gradle.kts
├── build.gradle.kts
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle.kts
I'm aware that with such setup I don't really need that submodule in the first place, and the walkaround was to change rootProject.name to something else, so it's not a big deal.
The project that I've mentioned is here - https://github.com/problem4j/problem4j-core/blob/main/settings.gradle.kts.
Related environment and versions
No response
Reproduction steps
- Clone my repo - https://github.com/problem4j/problem4j-core.
- Change
rootProject.nameto the same name as included submodule insettings.gradle.kts. - Run
./gradlew nmcpZipAggregation. - Observe that
build/libs/nmcp/zip/aggregation.zipis not there. - If
rootProject.nameis changed back to a different than submodule's name, thennmcpZipAggregationwould producebuild/libs/nmcp/zip/aggregation.zip.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working