Also, even worse, what about different kotlin vers...
# announcements
u
Also, even worse, what about different kotlin versions also?
a
From: https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:version-conflict Highest version are chosen. Note plugin version and dependency version is mutually exclusive hence its why you don’t exactly need to declare the
stdlib
dependency version and just let the Kotlin plugin does it for you. As for
jdk7
and
jdk8
libraries, they expose extension methods for Java classes that is introduced in
jdk7
(try with resources which supported by Kotlin
use
extensions on
AutoCloseable
(Java 7+ only) or
jdk8
(Streams, Java 8+ only). In pure Kotlin project, you need neither. You at least want
jdk7
lib though if you do any IO with Java interop.
u
right, but dont jdk8 and jdk7 overlap? i.e. could cause runtime issues if both are on classpath?
i
No, they are complementary.