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 Kotlin DSL - Gradle plugin version 8.0 #355

Open
VictorAlbertos opened this issue Sep 18, 2023 · 0 comments
Open

Gradle Kotlin DSL - Gradle plugin version 8.0 #355

VictorAlbertos opened this issue Sep 18, 2023 · 0 comments

Comments

@VictorAlbertos
Copy link

When I try to run any task from this Plugin, using the Kotlin DSL and Gradle Plugin version 8.0, such as ./gradlew dependencyCheckUpdate, I get his error related with Jackson:

Execution failed for task ':dependencyCheckUpdate'.
> class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method com.fasterxml.jackson.databind.deser.SettableBeanProperty.getDeclaringClass()Ljava/lang/Class;

I tried multiple combinations of forcing the Jackson version, also adding additional Jackson dependencies -based on suggestions that I found on StackOverflow. But none of this it worked:

buildscript {
    dependencies {
        classpath("com.fasterxml.jackson.core:jackson-databind:multiple-versions-tried-here")
        classpath("com.fasterxml.jackson.core:jackson-core:multiple-versions-tried-here")
        classpath("com.fasterxml.jackson.core:jackson-annotations:multiple-versions-tried-here")
    }

    configurations.all {
        resolutionStrategy {
            force("com.fasterxml.jackson.core:jackson-databind:multiple-versions-tried-here")
            force("com.fasterxml.jackson.core:jackson-core:multiple-versions-tried-here")
            force("com.fasterxml.jackson.core:jackson-annotations:multiple-versions-tried-here")
        }
    }
}

Any idea how could I fix this issue? The thing is that jackson version that this plugin uses is really old, maybe it is worth it bumping it?

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