February 2020
Intermediate to advanced
412 pages
9h 36m
English
For Maven, define a kotlin.version property and Kotlin-stdlib as a dependency in the pom.xml file, as shown in the following code:
<properties> <kotlin.version>1.3.61</kotlin.version> </properties> <dependencies> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>${kotlin.version}</version> </dependency> </dependencies>
The source code directory has to be specified inside the build tag as follows:
<build> <sourceDirectory> ${project.basedir}/src/main/kotlin </sourceDirectory> <testSourceDirectory> ${project.basedir}/src/test/kotlin </testSourceDirectory> </build>
The kotlin-maven-plugin has to be set inside the build tag as well, as demonstrated in the following ...
Read now
Unlock full access