How to use plugin with different dependency versions #851
Replies: 1 comment 4 replies
-
Hi there, Thank you for your question. I see in it a lack of proper explanation in the plugin documentation. Both configurations Configuration To update or add other plugin dependencies it's mean to be used only so I'd rewrite your DLS as such: dependencies {
// ...
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.1")
// If upgrade of jsonschema2pojo is needed. I haven't tried if this is still compatible (I hope so)
jsonschema2dataclass("org.jsonschema2pojo:jsonschema2pojo:1.2.1")
// If upgrade of jackson databind for plugin is needed:
jsonschema2dataclassPlugins("com.fasterxml.jackson.core:jackson-databind:2.16.1")
} |
Beta Was this translation helpful? Give feedback.
-
Hi, when I generate Gradle lock-file, it contains following records:
I would like to use recent
com.fasterxml.jackson.core:jackson-databind
dependency version (2.16.1) forjsonschema2dataclass
andjsonschema2dataclassPlugins
as well.I have tried to extend my gradle-kotlin-dsl script:
This change was accepted by Gradle, and I'm able to generate Gradle lock-file successfully, which looks now:
However, when I try to build the project, I'm getting the following error:
Beta Was this translation helpful? Give feedback.
All reactions