After updating my project to 1.2.0, I still have t...
# gradle
r
After updating my project to 1.2.0, I still have transitive deps pulling in 1.1.x. Do I need to force the correct kotlin version with a
resolutionStrategy
or is there a more elegant approach?
m
Gradle's default conflict resolution strategy is to use the newer version.
If you use the
dependencies
task to display them, you should see something like this:
org.jetbrains.kotlin:kotlin-stdlib:1.1.3 -> 1.2.0
(example from one of my projects)
r
@michaelsims The default doesn't quite work for this update because some of the deps have changed e.g.
kotlin-stdlib-jre7
is now
kotlin-stdlib-jdk7
. I had to add explicit resolution and exclusion rules.
m
Ah, I see. My project is an Android one so I'm not using those dependencies. Sorry for the noise
r
No worries!