@@ -10,6 +10,7 @@ import com.sourcegraph.io.DeleteVisitor
10
10
import com .sourcegraph .scip_java .BuildInfo
11
11
import com .sourcegraph .scip_java .Embedded
12
12
import com .sourcegraph .scip_java .commands .IndexCommand
13
+ import org .intellij .lang .annotations .Language
13
14
import os .CommandResult
14
15
15
16
class GradleBuildTool (index : IndexCommand ) extends BuildTool (" Gradle" , index) {
@@ -73,7 +74,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
73
74
val script = initScript(toolchains, toolchains.tmp).toString
74
75
val buildCommand = ListBuffer .empty[String ]
75
76
buildCommand += toolchains.gradleCommand
76
- buildCommand += s " --no-daemon "
77
+ buildCommand += " --no-daemon"
77
78
buildCommand += " --init-script"
78
79
buildCommand += script
79
80
if (toolchains.toolchains.nonEmpty) {
@@ -82,6 +83,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
82
83
buildCommand +=
83
84
s " -Porg.gradle.java.installations.paths= ${toolchains.paths()}"
84
85
}
86
+ buildCommand += " -Pkotlin.compiler.execution.strategy=in-process"
85
87
buildCommand ++=
86
88
index.finalBuildCommand(
87
89
List [Option [String ]](
@@ -146,6 +148,7 @@ class GradleBuildTool(index: IndexCommand) extends BuildTool("Gradle", index) {
146
148
val dependenciesPath = targetroot.resolve(" dependencies.txt" )
147
149
val kotlinSemanticdbVersion = BuildInfo .semanticdbKotlincVersion
148
150
Files .deleteIfExists(dependenciesPath)
151
+ @ Language (" Groovy" )
149
152
val script =
150
153
s """ |allprojects {
151
154
| gradle.projectsEvaluated {
0 commit comments