Skip to content

Commit 45a808f

Browse files
chashnikovintellij-monorepo-bot
authored andcommitted
[intellij project configuration] remove Kotlin facets which don't specify any custom options for a module
If there is no Kotlin facet in a module, it automatically inherits the project-wide options from .idea/kotlinc.xml. So if a configuration of a Kotlin facet in a module doesn't specify any custom options, the facet is not necessary, and it can be removed to simplify the project configuration and make it easier to modify project-wide options later. Also, a test which reports such unnecessary Kotlin facets is added. GitOrigin-RevId: 7cf2a714064499e1cdd768978ff7afd839567c87
1 parent 29665cf commit 45a808f

File tree

6 files changed

+0
-96
lines changed

6 files changed

+0
-96
lines changed

java/compiler/charts/intellij.java.compiler.charts.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module relativePaths="true" type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all -opt-in=com.intellij.openapi.util.IntellijInternalApi" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

java/java-frontback-impl/intellij.java.frontback.impl.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all -opt-in=com.intellij.openapi.util.IntellijInternalApi" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

platform/build-scripts/downloader/intellij.platform.buildScripts.downloader.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all -opt-in=com.intellij.openapi.util.IntellijInternalApi -opt-in=org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_17" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

platform/experiment/intellij.platform.experiment.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

plugins/kotlin/highlighting/highlighting-shared/kotlin.highlighting.shared.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all -opt-in=com.intellij.openapi.util.IntellijInternalApi -opt-in=org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

plugins/kotlin/jvm-debugger/evaluation/k1/kotlin.jvm-debugger.evaluation.k1.iml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module type="JAVA_MODULE" version="4">
3-
<component name="FacetManager">
4-
<facet type="kotlin-language" name="Kotlin">
5-
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
6-
<compilerSettings>
7-
<option name="additionalArguments" value="-Xjvm-default=all -opt-in=org.jetbrains.kotlin.analysis.api.KaNonPublicApi" />
8-
</compilerSettings>
9-
<compilerArguments>
10-
<stringArguments>
11-
<stringArg name="jvmTarget" arg="17" />
12-
<stringArg name="apiVersion" arg="2.0" />
13-
<stringArg name="languageVersion" arg="2.0" />
14-
</stringArguments>
15-
</compilerArguments>
16-
</configuration>
17-
</facet>
18-
</component>
193
<component name="NewModuleRootManager" inherit-compiler-output="true">
204
<exclude-output />
215
<content url="file://$MODULE_DIR$">

0 commit comments

Comments
 (0)