-
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