June 2017
Intermediate to advanced
400 pages
8h 44m
English
For Maven, define a kotlin.version property and the Kotlin-stdlib as a dependency in your POM, as shown in the following code. Then, build the project:
<properties> <kotlin.version>1.1.2-2</kotlin.version> </properties> <dependencies> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>${kotlin.version}</version> </dependency> </dependencies>
You will also need to specify the source code directories and the kotlin-maven-plugin, as demonstrated in the following code:
<build> <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> <plugins> <plugin> <artifactId>kotlin-maven-plugin</artifactId> ...Read now
Unlock full access