Gradle
添加kotlin-osgi-bundle到Gradle工程:
compile "org.jetbrains.kotlin:kotlin-osgi-bundle:$kotlinVersion"
移除默认的Kotlin库:
dependencies {
compile (
[group: 'some.group.id', name: 'some.library', version: 'someversion'],
.....) {
exclude group: 'org.jetbrains.kotlin'
}