Bug 1897958 - Disable Kotlin code indexing until there is a compatible scip-kotlin plugin available. r=android-reviewers,pollymce
Differential Revision: https://phabricator.services.mozilla.com/D213828
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -147,10 +147,10 @@ allprojects {
|
||||
}
|
||||
|
||||
// Use the semanticdb-javac and semanticdb-kotlinc plugins to generate semanticdb files for Searchfox
|
||||
// NOTE: Kotlin code indexing is currently removed due to lack of Kotlin 2.x support (see bug 1938622)
|
||||
if (mozconfig.substs.ENABLE_MOZSEARCH_PLUGIN || mozconfig.substs.DOWNLOAD_ALL_GRADLE_DEPENDENCIES) {
|
||||
def targetRoot = new File(topobjdir, "mozsearch_java_index")
|
||||
def semanticdbJavacVersion = "com.sourcegraph:semanticdb-javac:0.10.3"
|
||||
def semanticdbKotlincVersion = "com.sourcegraph:semanticdb-kotlinc:0.4.0"
|
||||
|
||||
afterEvaluate {
|
||||
def addDependencyToConfigurationIfExists = { configurationName, dependency ->
|
||||
@@ -163,7 +163,6 @@ allprojects {
|
||||
addDependencyToConfigurationIfExists("compileOnly", semanticdbJavacVersion)
|
||||
addDependencyToConfigurationIfExists("testCompileOnly", semanticdbJavacVersion)
|
||||
addDependencyToConfigurationIfExists("androidTestCompileOnly", semanticdbJavacVersion)
|
||||
addDependencyToConfigurationIfExists("kotlinCompilerPluginClasspath", semanticdbKotlincVersion)
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
@@ -171,13 +170,6 @@ allprojects {
|
||||
"-Xplugin:semanticdb -sourceroot:${topsrcdir} -targetroot:${targetRoot}",
|
||||
]
|
||||
}
|
||||
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
||||
compilerOptions.freeCompilerArgs.addAll([
|
||||
"-P", "plugin:semanticdb-kotlinc:sourceroot=${topsrcdir}",
|
||||
"-P", "plugin:semanticdb-kotlinc:targetroot=${targetRoot}",
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
task downloadDependencies() {
|
||||
|
||||
Reference in New Issue
Block a user