Skip to content

Identical Gradle attributes found between bootArchive and archive configurations #34812

Closed as not planned
@asibross

Description

@asibross

It seems that Gradle 8 enforces that 2 configuration cannot have the same attributes.
In my project I am seeing this issue:

Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration ':bootArchives' and [configuration ':archives'] contain identical attribute sets. Consider adding an additional attribute to one of the configurations to disambiguate them. Run the 'outgoingVariants' task for more details. See https://docs.gradle.org/8.0.2/userguide/upgrading_version_7.html#unique_attribute_sets for more details.

I suggest adding an attribute for the bootArchives configuration that will distinguish between the two.

Perhaps leverage the bundling attribute and set it to embedded.
https://docs.gradle.org/current/userguide/variant_attributes.html#sec:standard_attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions