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:
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user