[minor] fix source root creation from imported scripts:

make the usages of KotlinSourceRoot consistent everywhere
This commit is contained in:
Ilya Chernikov
2019-10-01 14:17:51 +02:00
parent f2a4a835e7
commit 3cae90dd26
@@ -54,7 +54,7 @@ fun collectScriptsCompilationDependencies(
val sourceDependenciesRoots = refinedConfiguration.value.importedScripts.mapNotNull { val sourceDependenciesRoots = refinedConfiguration.value.importedScripts.mapNotNull {
// TODO: support any kind of ScriptSource. // TODO: support any kind of ScriptSource.
val path = (it as? FileBasedScriptSource)?.file?.path ?: return@mapNotNull null val path = (it as? FileBasedScriptSource)?.file?.absolutePath ?: return@mapNotNull null
KotlinSourceRoot(path, false) KotlinSourceRoot(path, false)
} }
val sourceDependencies = val sourceDependencies =