1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

don’t add deprecated kotlin runtime jar to classpath

This commit is contained in:
Juan Liska 2018-11-23 05:11:00 -06:00
parent 0cc2c23a32
commit 1ff46b5842
2 changed files with 1 additions and 2 deletions

View file

@ -16,6 +16,5 @@ class KotlinJarFiles @Inject constructor(val dependencyManager: DependencyManage
}
val stdlib: File get() = getKotlinCompilerJar("stdlib")
val runtime: File get() = getKotlinCompilerJar("runtime")
val compiler: File get() = getKotlinCompilerJar("compiler-embeddable")
}

View file

@ -101,7 +101,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val depen
override fun classpathEntriesFor(project: Project?, context: KobaltContext): List<IClasspathDependency> =
if (project == null || accept(project)) {
// All Kotlin projects automatically get the Kotlin runtime added to their class path
listOf(kotlinJarFiles.stdlib, kotlinJarFiles.runtime)
listOf(kotlinJarFiles.stdlib)
.map { FileDependency(it.absolutePath) }
} else {
emptyList()