Skip to content

Gradle configuration quarkusDev does not work since 3.25.1 #49522

@Eng-Fouad

Description

@Eng-Fouad

Describe the bug

Gradle configuration quarkusDev does not work since 3.25.1, after merging this PR #49224

dependencies {
    implementation(enforcedPlatform(libs.quarkus.bom))
    implementation(libs.quarkus.rest.jackson)
    quarkusDev(libs.quarkiverse.barcode.zxing)
    compileOnly(libs.quarkiverse.barcode.zxing)
}

I got this error:

> Task :quarkusDev FAILED

[Incubating] Problems report is available at: file:///C:/Users/fouad/IdeaProjects/quarkus-gradle-dev/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':quarkusDev'.
> Could not resolve all dependencies for configuration ':quarkusDevCompileOnlyConfiguration'.
   > Could not resolve io.quarkus:quarkus-arc:3.15.6.
     Required by:
         root project :
      > Cannot choose between the available variants of io.quarkus:quarkus-arc:3.26.0.CR1:
          - quarkus.dev.conditional-dependency.quarkus-gradle-dev
          - quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5
          - runtime
        All of them match the consumer attributes:
          - Variant 'quarkus.dev.conditional-dependency.quarkus-gradle-dev' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
                  - Provides quarkus.dev.conditional-dependency.quarkus-gradle-dev 'on' but the consumer didn't ask for it
          - Variant 'quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
                  - Provides quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5 'on' but the consumer didn't ask for it
          - Variant 'runtime' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
   > Could not resolve io.quarkus:quarkus-arc:3.15.6.
     Required by:
         root project : > io.quarkiverse.barcode:quarkus-zxing:1.0.1
      > Cannot choose between the available variants of io.quarkus:quarkus-arc:3.26.0.CR1:
          - quarkus.dev.conditional-dependency.quarkus-gradle-dev
          - quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5
          - runtime
        All of them match the consumer attributes:
          - Variant 'quarkus.dev.conditional-dependency.quarkus-gradle-dev' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
                  - Provides quarkus.dev.conditional-dependency.quarkus-gradle-dev 'on' but the consumer didn't ask for it
          - Variant 'quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
                  - Provides quarkusDevIterativeQuarkus-gradle-devQuarkus-arc5 'on' but the consumer didn't ask for it
          - Variant 'runtime' capability 'io.quarkus:quarkus-arc:3.26.0.CR1':
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'release' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
> There is 1 more failure with an identical cause.

* Try:
> Ambiguity errors are explained in more detail at https://docs.gradle.org/8.14/userguide/variant_model.html#sub:variant-ambiguity.
> Review the variant matching algorithm at https://docs.gradle.org/8.14/userguide/variant_attributes.html#sec:abm_algorithm.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 5s

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

https://github.com/Eng-Fouad/quarkus-gradle-dev

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

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

No response

Additional information

Workaround:

disableQuarkusComponentVariants=true

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