Scripting: update scripts in source roots handling

#KT-52525 fixed
related to #KT-52735
This commit is contained in:
Ilya Chernikov
2022-05-27 16:31:11 +02:00
committed by teamcity
parent b2b13a0247
commit 855059b93c
21 changed files with 182 additions and 17 deletions
@@ -36,6 +36,10 @@ class ScriptCompilationConfigurationFromDefinition(
platform(scriptDefinition.platform)
@Suppress("DEPRECATION")
compilerOptions.putIfAny(scriptDefinition.additionalCompilerArguments)
// TODO: remove this exception when gradle switches to the new definitions and sets the property accordingly
if (scriptDefinition.fileExtension == "gradle.kts") {
isStandalone(false)
}
ide {
acceptedLocations.put(scriptDefinition.scriptExpectedLocations.mapLegacyExpectedLocations())
}