Fix passing K2 language version to K1 multimodule tests

After splitting K1 and K2 tests some multimodule tests in K1 configuration were still running with 2.0 language version. The reason was in misconfiguration of complex multimodule projects - they don't apply override of compiler arguments. This fix added such arguments update.

#KT-60589 Fixed
This commit is contained in:
Aleksei.Cherepanov
2023-07-20 17:00:24 +02:00
committed by Space Team
parent f6963d04e9
commit 6ac76aa3e9
@@ -457,6 +457,9 @@ abstract class AbstractIncrementalJpsTest(
val kotlinFacetSettings = module.kotlinFacetSettings
if (kotlinFacetSettings != null) {
val compilerArguments = kotlinFacetSettings.compilerArguments
if(compilerArguments != null) {
updateCommandLineArguments(compilerArguments)
}
if (compilerArguments is K2MetadataCompilerArguments) {
val out = getAbsolutePath("${module.name}/out")
File(out).mkdirs()