Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle - Cannot find dependency when under constraints #20419

Closed
mikethecalamity opened this issue Sep 27, 2021 · 1 comment · Fixed by #20435
Closed

Gradle - Cannot find dependency when under constraints #20419

mikethecalamity opened this issue Sep 27, 2021 · 1 comment · Fixed by #20435
Labels
area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@mikethecalamity
Copy link

Describe the bug

When a dependency is under the constraints block and not, it cannot be found.

Expected behavior

Successful build

Actual behavior

A problem occurred configuring project ':service1'.
> Could not resolve all dependencies for configuration ':service1:quarkusDependency'.
   > Could not find javax.json.bind:javax.json.bind-api:.
     Required by:
         project :service1

How to Reproduce?

plugins {
    id 'io.quarkus'
}

dependencies {

   implementation enforcedPlatform('io.quarkus:quarkus-bom:2.3.0.CR1')

    constraints {
        implementation 'javax.json.bind:javax.json.bind-api:1.0'
    }
    
    implementation 'javax.json.bind:javax.json.bind-api'
    implementation 'io.quarkus:quarkus-resteasy'
}

Output of uname -a or ver

Ubuntu 20.04

Output of java -version

OpenJDK 11.0.11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.2.3.Final, 2.3.0.CR1, master

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

Gradle 7.2

Additional information

No response

@mikethecalamity mikethecalamity added the kind/bug Something isn't working label Sep 27, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 27, 2021

/cc @glefloch, @quarkusio/devtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants