@@ -10,6 +10,7 @@ import com.sourcegraph.io.DeleteVisitor
1010import com .sourcegraph .scip_java .BuildInfo
1111import com .sourcegraph .scip_java .Embedded
1212import com .sourcegraph .scip_java .commands .IndexCommand
13+ import org .intellij .lang .annotations .Language
1314import os .CommandResult
1415
1516class GradleBuildTool (index : IndexCommand ) extends BuildTool (" Gradle" , index) {
@@ -73,7 +74,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
7374 val script = initScript(toolchains, toolchains.tmp).toString
7475 val buildCommand = ListBuffer .empty[String ]
7576 buildCommand += toolchains.gradleCommand
76- buildCommand += s " --no-daemon "
77+ buildCommand += " --no-daemon"
7778 buildCommand += " --init-script"
7879 buildCommand += script
7980 if (toolchains.toolchains.nonEmpty) {
@@ -82,6 +83,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
8283 buildCommand +=
8384 s " -Porg.gradle.java.installations.paths= ${toolchains.paths()}"
8485 }
86+ buildCommand += " -Pkotlin.compiler.execution.strategy=in-process"
8587 buildCommand ++=
8688 index.finalBuildCommand(
8789 List [Option [String ]](
@@ -146,6 +148,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
146148 val dependenciesPath = targetroot.resolve(" dependencies.txt" )
147149 val kotlinSemanticdbVersion = BuildInfo .semanticdbKotlincVersion
148150 Files .deleteIfExists(dependenciesPath)
151+ @ Language (" Groovy" )
149152 val script =
150153 s """ |allprojects {
151154 | gradle.projectsEvaluated {
0 commit comments