Add stdlib to gradle scripts classpath, since it is not included into compiler anymore

This commit is contained in:
Ilya Chernikov
2017-10-11 14:28:23 +02:00
parent e911a1e53d
commit 279126ad7e
@@ -98,7 +98,7 @@ abstract class AbstractGradleKotlinDSLTemplateProvider(project: Project, private
// TODO_R: check this against kotlin-dsl branch that uses daemon
override val additionalResolverClasspath: List<File> get() =
// additionally need compiler jar to load gradle resolver
gradleLibDir.listFiles { file -> file.name.startsWith("kotlin-compiler-embeddable") }
gradleLibDir.listFiles { file -> file.name.startsWith("kotlin-compiler-embeddable") || file.name.startsWith("kotlin-stdlib") }
.firstOrNull()?.let(::listOf).orEmpty()
}