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

jdbi3-sqlobject:3.30.0 throws a runtimeClasspath error at compile time #839

Open
pjgg opened this issue Mar 28, 2023 · 0 comments
Open

jdbi3-sqlobject:3.30.0 throws a runtimeClasspath error at compile time #839

pjgg opened this issue Mar 28, 2023 · 0 comments

Comments

@pjgg
Copy link

pjgg commented Mar 28, 2023

Expected Behavior

I would expect that the dependency jdbi3-sqlobject that comes from Micronaut BOM didn´t throw any classpath error.

The workaround could be overwrites the version that comes from the BOM with implementation("org.jdbi:jdbi3-sqlobject:3.37.1")

Actual Behaviour

Given an application with the following dependencies:

dependencies {
    runtimeOnly("ch.qos.logback:logback-classic")
    implementation("io.micronaut.sql:micronaut-jdbc-hikari")
    implementation("io.micronaut.sql:micronaut-jdbi")
    implementation("org.postgresql:postgresql")
    implementation("org.jdbi:jdbi3-sqlobject")
    implementation("jakarta.annotation:jakarta.annotation-api")
    annotationProcessor("io.micronaut:micronaut-graal")
}

I am getting the following error:

Execution failed for task ':inspectRuntimeClasspath'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve com.github.ben-manes.caffeine:caffeine:2.9.3.
     Required by:
         project : > io.micronaut:micronaut-bom:3.8.7 > io.micronaut.cache:micronaut-cache-bom:3.5.0
         project : > io.micronaut.sql:micronaut-jdbi:4.7.2 > io.micronaut.cache:micronaut-cache-caffeine:3.5.0
      > Cannot find a version of 'com.github.ben-manes.caffeine:caffeine' that satisfies the version constraints:
           Dependency path 'com.example:micronaut-restAPI-jdbi:0.1' --> 'io.micronaut.sql:micronaut-jdbi:4.7.2' (runtimeElements) --> 'com.github.ben-manes.caffeine:caffeine:{strictly 2.9.3}'
           Dependency path 'com.example:micronaut-restAPI-jdbi:0.1' --> 'io.micronaut.sql:micronaut-jdbi:4.7.2' (runtimeElements) --> 'io.micronaut.cache:micronaut-cache-caffeine:3.5.0' (runtimeElements) --> 'com.github.ben-manes.caffeine:caffeine:2.9.3'
           Constraint path 'com.example:micronaut-restAPI-jdbi:0.1' --> 'io.micronaut:micronaut-bom:3.8.7' (runtimeElements) --> 'io.micronaut.cache:micronaut-cache-bom:3.5.0' (runtimeElements) --> 'com.github.ben-manes.caffeine:caffeine:2.9.3'
           Dependency path 'com.example:micronaut-restAPI-jdbi:0.1' --> 'io.micronaut.sql:micronaut-jdbi:4.7.2' (runtimeElements) --> 'org.jdbi:jdbi3-core:3.30.0' (runtime) --> 'com.github.ben-manes.caffeine:caffeine:3.0.3'

Looks like the jdbi3-sqlobject BOM version is not updated.

Steps To Reproduce

Just create an app with the following dependencies:

dependencies {
    runtimeOnly("ch.qos.logback:logback-classic")
    implementation("io.micronaut.sql:micronaut-jdbc-hikari")
    implementation("io.micronaut.sql:micronaut-jdbi")
    implementation("org.postgresql:postgresql")
    implementation("org.jdbi:jdbi3-sqlobject")
    implementation("jakarta.annotation:jakarta.annotation-api")
    annotationProcessor("io.micronaut:micronaut-graal")
}

and launch your app gradle run

Environment Information

openjdk 17.0.5 2022-10-18
Fedora 37

Example Application

No response

Version

3.7.4

@pjgg pjgg changed the title jdbi3-sqlobject:3.30.0 is throwing a runtimeClasspath error at compile time jdbi3-sqlobject:3.30.0 throws a runtimeClasspath error at compile time Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant