Using Maven
Using Maven
Plugin and Versions
The kotlin-maven-plugin compiles Kotlin sources and modules. Currently only Maven v3 is supported.
Define the version of Kotlin you want to use via a kotlin.version property:
<properties> <kotlin.version>1.1.0</kotlin.version> </properties>
Dependencies
Kotlin has an extensive standard library that can be used in your applications. Configure the following dependency in the pom file
<dependencies> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>${kotlin.version}</version> </dependency> </dependencies>
If your project uses 登录查看完整内容