Pill: Import Java toolchain configuration correctly
Before, all project modules used 'inheritedJdk'. However, some Kotlin modules now require JDK 8, while others depend on new API in JDK 11.
This commit is contained in:
@@ -130,7 +130,10 @@ private fun renderModule(project: PProject, module: PModule) = PFile(
|
||||
}
|
||||
}
|
||||
|
||||
xml("orderEntry", "type" to "inheritedJdk")
|
||||
when (val javaLanguageVersion = module.javaLanguageVersion) {
|
||||
null -> xml("orderEntry", "type" to "inheritedJdk")
|
||||
else -> xml("orderEntry", "type" to "jdk", "jdkName" to javaLanguageVersion.toString(), "jdkType" to "JavaSDK")
|
||||
}
|
||||
|
||||
xml("orderEntry", "type" to "sourceFolder", "forTests" to "false")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user