Skip to content

Quarkus extension using Gradle started failing after #49224 #49470

@LarsSven

Description

@LarsSven

Describe the bug

#49224 made changes to the Gradle dependencies setup. Since that change, our SignalR extension started failing: https://gitlab.com/rug-digitallab/resources/quarkus-signalr/-/merge_requests/160

Expected behavior

Our extension should be able to upgrade to 3.25.1 without failures

Actual behavior

Our extension started failing with:

Execution failed for task ':deployment:test'.
> Could not resolve all files for configuration ':deployment:quarkusTestRuntimeClasspathConfigurationDeployment'.
   > Could not resolve project :deployment.
     Required by:
         project :deployment
      > The consumer was configured to find a library for use during runtime, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'quarkus.test.conditional-dependency.deployment' with value 'on', attribute 'quarkus.test.deployment-dependency.deployment' with value 'on'. However we cannot choose between the following variants of project :deployment:
          - quarkusDependency
          - testImplementationDeployment
        All of them match the consumer attributes:
          - Variant 'quarkusDependency' capability 'nl.rug.digitallab.quarkus:deployment:0.0.3-SNAPSHOT' declares a library for use during runtime, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'quarkus.test.conditional-dependency.deployment' with value 'on', attribute 'quarkus.test.deployment-dependency.deployment' with value 'on'
          - Variant 'testImplementationDeployment' capability 'nl.rug.digitallab.quarkus:deployment:0.0.3-SNAPSHOT' declares a library for use during runtime, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'quarkus.test.conditional-dependency.deployment' with value 'on', attribute 'quarkus.test.deployment-dependency.deployment' with value 'on'

How to Reproduce?

  1. Clone https://gitlab.com/rug-digitallab/resources/quarkus-signalr
  2. Check out commit 7cb256813743414a970b81fa8dfc8a3de0396b10 (or develop and upgrade the Quarkus dependency in gradle.properties
  3. Try running ./gradlew test and observe the failure.

Output of uname -a or ver

Ubuntu 25.04

Output of java -version

OpenJDK 21.0.8

Quarkus version or git rev

3.25.2

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 9.0.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions