Skip to content

In Gradle, properly handle relocated artifacts in conditional dependency resolution #49742

@reaver585

Description

@reaver585

Summary
In Gradle, conditional dependency resolution currently fails when encountering relocation artifacts (e.g. io.quarkus:quarkus-resteasy-reactive-qute:3.15.1 -> io.quarkus:quarkus-rest-qute), due to setTransitive(false) being applied in the new resolver. This has surfaced in #49714, #49700.

Details

  • In the new Gradle component-variant–based resolver, conditional dependencies are resolved with setTransitive(false).
  • The relocation target artifact is not resolved, leading to failures (XXX did not resolve to any artifacts).

Expected Behavior
Relocation artifacts should be properly resolved to their target coordinates, and dependency matching should be done against the relocated GAV.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions