Exclude dependency in integration test runtime

Hi all!

When i deploy my spring boot app to Tomcat (before I use “gradle clean build” to build my Spring Boot app) it uses correct version of Jackson faster xml.

But when I run my integration test (“gradle intergationTest”) gradle uses unwanted jar (another version of jackson).

How to force it to use correct version of jackson?

The most likely explanation is that another of your test dependencies has a transitive dependency on a different version of Jackson.
In order to discover what is causing this change, have a look at how to determine which version was selected and why.
If you want that edge to be ignored, you will need to remove it using a ComponentMetadataRule.