Skip to content

Commit ff053bd

Browse files
authored
Merge pull request #2 from olafurpg/kotlinc
2 parents 618effb + e0c3efd commit ff053bd

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: CI
2-
on: [push]
2+
on:
3+
push:
4+
pull_request:
35
jobs:
46
test:
57
runs-on: ubuntu-latest

semanticdb-kotlinc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tasks.jar {
7777
manifest {
7878
attributes["Specification-Title"] = project.name
7979
attributes["Specification-Version"] = project.version
80-
attributes["Implementation-Title"] = "com.sourcegraph.lsif-kotlin"
80+
attributes["Implementation-Title"] = "semanticdb-kotlinc"
8181
attributes["Implementation-Version"] = project.version
8282
}
8383
}
@@ -210,9 +210,9 @@ subprojects {
210210
freeCompilerArgs = freeCompilerArgs + listOf(
211211
"-Xplugin=$pluginJar",
212212
"-P",
213-
"plugin:com.sourcegraph.lsif-kotlin:sourceroot=${sourceroot}",
213+
"plugin:semanticdb-kotlinc:sourceroot=${sourceroot}",
214214
"-P",
215-
"plugin:com.sourcegraph.lsif-kotlin:targetroot=${targetroot}"
215+
"plugin:semanticdb-kotlinc:targetroot=${targetroot}"
216216
)
217217
}
218218
}

semanticdb-kotlinc/src/main/kotlin/com/sourcegraph/semanticdb_kotlinc/AnalyzerCommandLineProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const val VAL_TARGET = "targetroot"
1515
val KEY_TARGET = CompilerConfigurationKey<Path>(VAL_TARGET)
1616

1717
class AnalyzerCommandLineProcessor: CommandLineProcessor {
18-
override val pluginId: String = "com.sourcegraph.lsif-kotlin"
18+
override val pluginId: String = "semanticdb-kotlinc"
1919
override val pluginOptions: Collection<AbstractCliOption> = listOf(
2020
CliOption(
2121
VAL_SOURCES ,

semanticdb-kotlinc/src/test/kotlin/com/sourcegraph/semanticdb_kotlinc/test/AnalyzerTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class AnalyzerTest {
3636
compilerPlugins = listOf(AnalyzerRegistrar { document = it })
3737
verbose = false
3838
pluginOptions = listOf(
39-
PluginOption("com.sourcegraph.lsif-kotlin", "sourceroot", path.toString()),
40-
PluginOption("com.sourcegraph.lsif-kotlin", "targetroot", buildPath.toString())
39+
PluginOption("semanticdb-kotlinc", "sourceroot", path.toString()),
40+
PluginOption("semanticdb-kotlinc", "targetroot", buildPath.toString())
4141
)
4242
commandLineProcessors = listOf(AnalyzerCommandLineProcessor())
4343
workingDir = path.toFile()
@@ -488,8 +488,8 @@ class AnalyzerTest {
488488
compilerPlugins = listOf(AnalyzerRegistrar())
489489
verbose = false
490490
pluginOptions = listOf(
491-
PluginOption("com.sourcegraph.lsif-kotlin", "sourceroot", path.toString()),
492-
PluginOption("com.sourcegraph.lsif-kotlin", "targetroot", buildPath.toString())
491+
PluginOption("semanticdb-kotlinc", "sourceroot", path.toString()),
492+
PluginOption("semanticdb-kotlinc", "targetroot", buildPath.toString())
493493
)
494494
commandLineProcessors = listOf(AnalyzerCommandLineProcessor())
495495
workingDir = path.toFile()

0 commit comments

Comments
 (0)