Do not add updated script classpath to the compilation configuration

it is added via the updateClasspath call with proper duplicates control
This commit is contained in:
Ilya Chernikov
2019-09-23 11:59:28 +02:00
parent 256d3a79e4
commit 0a1aff4f80
@@ -225,8 +225,6 @@ internal fun collectRefinedSourcesAndUpdateEnvironment(
sourceFiles
)
// TODO: consider removing, it is probably redundant: the actual index update is performed with environment.updateClasspath
context.environment.configuration.addJvmClasspathRoots(classpath)
context.environment.updateClasspath(classpath.map(::JvmClasspathRoot))
sourceFiles.addAll(newSources)