question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Jackson version getting picked up?

See original GitHub issue

I had this working previously and now running into this issue locally and on CI (our own hosted Github runners). It looks like this project defines a newer version of Jackson (2.13.0) but our project is not loading that version. It looks like we are picking up Jackson 2.11.1

Android Studio Chipmunk (stable) AGP 7.2.0 Gradle 7.4.2

Generated report file build/dependencyUpdates/report.json
Generated report file build/dependencyUpdates/report.xml
Generated report file build/dependencyUpdates/report.txt

> Task :versionCatalogUpdate FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':versionCatalogUpdate'.
> com.fasterxml.jackson.dataformat.toml.TomlMapper.coercionConfigDefaults()Lcom/fasterxml/jackson/databind/cfg/MutableCoercionConfig;

When I run with --stacktrace is points to https://github.com/littlerobots/version-catalog-update-plugin/blob/main/catalog/src/main/kotlin/nl/littlerobots/vcu/VersionCatalogParser.kt

Let me know what other information is needed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
hvissercommented, Aug 3, 2022

I ran into a similar issue myself today where okio is added to the build classpath by this plugin, breaking plugins that need a newer version. A workaround is to set the correct dependency on the buildScript block, but the real fix would probably be bundling / shading the dependencies using https://github.com/GradleUp/gr8

1reaction
ivanalvaradocommented, Jun 16, 2022

I’m still trying to repro on small project, but adding

implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.13.0")

to buildSrc/build.gradle.kts works.

In the meantime, here’s some of the stacktrace:

Caused by: java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.cfg.MutableCoercionConfig com.fasterxml.jackson.dataformat.toml.TomlMapper.coercionConfigDefaults()'
        at com.fasterxml.jackson.dataformat.toml.TomlMapper.<init>(TomlMapper.java:75)
        at com.fasterxml.jackson.dataformat.toml.TomlMapper.<init>(TomlMapper.java:68)
        at nl.littlerobots.vcu.VersionCatalogParser.parse(VersionCatalogParser.kt:42)
        at nl.littlerobots.vcu.plugin.VersionCatalogUpdateTask.updateCatalog(VersionCatalogUpdateTask.kt:108)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:242)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle reports incorrect jackson-bom dependency version #52
[timestamp] version directly in Gradle and it will work (user will get jackson-databind:2.13.2.1 ) because Gradle picks the higher version.
Read more >
Different version of component (from what is defined in pom ...
1 contains jackson-core:2.9.9 while you are manually importing jackson-core:2.6.1 and therefore get version conflict. More generally, run mnv ...
Read more >
Depending on the right versions of Jackson libraries
A lot of libraries depend on jackson-core, which means that it is easy to get another version of jackson-core in your dependency tree...
Read more >
Alan Jackson - Small Town Southern Man (Official Music Video)
Watch the official music video for "Small Town Southern Man" by Alan JacksonListen to Alan Jackson : https://AlanJackson.lnk.to/listenYDWatch ...
Read more >
Solving the XML Problem with Jackson - Stackify
For example, older versions of Jackson XML depended on Stax2Writer, which didn't support writing raw characters to the stream.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found