I have a Java only multi module Maven project in IntelliJ IDEA and I can see IDEA calling a Kotlin compiler whenever I rebuild a module or choose to run all tests. This is shown in the background processes bar. It sometimes shows Kotlin: connecting to daemon
as well which seems to take quite some time.
Is there a way to tell IDEA to ignore Kotlin completely for a certain project? I guess the build times could speed up a little bit that way. I know I can disable the Kotlin plugin but that's not what I want as it would be disabled for all projects.
Asked
Active
Viewed 1.3k times
6

Hans Wurst
- 376
- 1
- 3
- 12
-
I don't know how it works, but I would speculate that the Kotlin compiler is mostly there to facilitate the building of the project and assembling the project. Since there isn't actually any Kotlin in your project, it likely just hands the task over to the project JDK. I don't think you need to worry about performance in this case. If you think the project might have been miss-classified as a Kotlin project, this link might help you: https://stackoverflow.com/questions/53497454/intellij-idea-ultimate-2018-3-thinks-my-java-9-project-is-a-kotlin-project – Locke Feb 11 '20 at 19:45
-
1This is a problem with IDEA builder. I created an issue https://youtrack.jetbrains.com/issue/KT-36705. A workaround is to disable the Kotlin IDEA plugin. – Alexey Belkov Feb 14 '20 at 10:09
-
Can someone make @AlexeyBelkov post an answer please? – Hans Wurst Sep 04 '20 at 08:14
-
@HansWurst By the way, I forgot to ask you. Does it help to enable "File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner | Delegate IDE build/run actions to Maven"? This should circumvent the built-in IDEA builder, so Kotlin compiler may not be activated. If this doesn't help, I have no other ideas. – Alexey Belkov Sep 04 '20 at 13:16
-
1That might help but leads to other problems. On top of my head I remember not being able to execute single test methods then by right clicking on them. – Hans Wurst Sep 11 '20 at 09:09
3 Answers
0
I tried to disable the plugin of Kotlin, and restart IDEA, and it is solved, even I continue using Gradle. Community 2019.3.

WesternGun
- 11,303
- 6
- 88
- 157
-1
Intellij provides 2 different settings. Project wise setting and global settings.
You can see the project specific settings by "right click the project" and select "Open Module Settings" as Below -
This will open Project Settings
window. You can select kotlin and remove there in the below screen.

user51
- 8,843
- 21
- 79
- 158
-
I thought this fixed the problem but after removing the Kotlin SDK I still get the Kotlin compiler output in the background processes bar – Hans Wurst Feb 11 '20 at 21:18
-
I never had Kotlin configured in my project and never downloaded SDK. Still I see IDEA connecting to daemon on every build. – Aleksandr Kravets May 25 '20 at 14:54
-1
If you are using Maven
for build manager, you might be using Koltin
plugin to build the project.
The plugin name is org.jetbrains.kotlin:kotlin-maven-plugin
.
<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<configuration>
<compilerPlugins>
<plugin>jpa</plugin>
</compilerPlugins>
<args>
<arg>-Xjsr305=strict</arg>
</args>
</configuration>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-noarg</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
You just need to delete it!

Pemassi
- 612
- 1
- 7
- 20