Provides extension and top-level functions to use JDK7/JDK8 features in Kotlin 1.0.
In Kotlin 1.1+ please use the standard library artifacts instead: kotlin-stdlib-jdk7
and kotlin-stdlib-jdk8
.
Add jcenter repository (if you don't have it yet)
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
Add a dependency:
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-support-jdk8</artifactId>
<version>0.3</version>
</dependency>
Just add a dependency:
compile 'org.jetbrains.kotlinx:kotlinx-support-jdk8:0.3'
jcenter repository should be configured by default in gradle, but if it's not you may need to include it:
repositories {
jcenter()
}