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.name to the same name as included submodule in settings.gradle.kts.
- Run
./gradlew nmcpZipAggregation.
- Observe that
build/libs/nmcp/zip/aggregation.zip is not there.
- If
rootProject.name is changed back to a different than submodule's name, then nmcpZipAggregation would produce build/libs/nmcp/zip/aggregation.zip.
Anything else?
No response
Expected and Results
In a Gradle project with single submodule, where both
rootProject.nameand included submodule itself have the same name,build/nmcp/zip/aggregation.zipis not created on./gradlew nmcpZipAggregationtask.The project layout looks like this:
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.nameto 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
rootProject.nameto the same name as included submodule insettings.gradle.kts../gradlew nmcpZipAggregation.build/libs/nmcp/zip/aggregation.zipis not there.rootProject.nameis changed back to a different than submodule's name, thennmcpZipAggregationwould producebuild/libs/nmcp/zip/aggregation.zip.Anything else?
No response