In production, google cloud connector for jdbc is used and drags in a new version of guava. This version of guava does not work with latest selenium which is on an older guava. I am using guava in tests so I would like to at runtime use the older guava jar for selenium. I tried changing compileClasspath to testCompileClasspath(a complete guess) following this
https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html
That didn’t seem to work though. 2 questions
- How do I list configurations so I don’t have to guess and list them?
- What is the correct syntax for what I want above and can I just swap out compileClasspath to the something and what is that something?
This post is a copy of https://stackoverflow.com/questions/60423854/in-gradle-how-to-lock-a-jar-to-a-version-only-for-test-compile-and-test-run