mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
don’t add deprecated kotlin runtime jar to classpath
This commit is contained in:
parent
0cc2c23a32
commit
1ff46b5842
2 changed files with 1 additions and 2 deletions
|
@ -16,6 +16,5 @@ class KotlinJarFiles @Inject constructor(val dependencyManager: DependencyManage
|
||||||
}
|
}
|
||||||
|
|
||||||
val stdlib: File get() = getKotlinCompilerJar("stdlib")
|
val stdlib: File get() = getKotlinCompilerJar("stdlib")
|
||||||
val runtime: File get() = getKotlinCompilerJar("runtime")
|
|
||||||
val compiler: File get() = getKotlinCompilerJar("compiler-embeddable")
|
val compiler: File get() = getKotlinCompilerJar("compiler-embeddable")
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val depen
|
||||||
override fun classpathEntriesFor(project: Project?, context: KobaltContext): List<IClasspathDependency> =
|
override fun classpathEntriesFor(project: Project?, context: KobaltContext): List<IClasspathDependency> =
|
||||||
if (project == null || accept(project)) {
|
if (project == null || accept(project)) {
|
||||||
// All Kotlin projects automatically get the Kotlin runtime added to their class path
|
// 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) }
|
.map { FileDependency(it.absolutePath) }
|
||||||
} else {
|
} else {
|
||||||
emptyList()
|
emptyList()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue