Skip to content

nmcpZipAggregation does not create aggregation.zip in one specific case #230

@malczuuu

Description

@malczuuu

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

  1. Clone my repo - https://github.com/problem4j/problem4j-core.
  2. Change rootProject.name to the same name as included submodule in settings.gradle.kts.
  3. Run ./gradlew nmcpZipAggregation.
  4. Observe that build/libs/nmcp/zip/aggregation.zip is not there.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions