Skip to content

Add support for Kotlin Gradle projects#351

Merged
olafurpg merged 2 commits into
scip-code:mainfrom
olafurpg:kotlin-gradle
Oct 19, 2021
Merged

Add support for Kotlin Gradle projects#351
olafurpg merged 2 commits into
scip-code:mainfrom
olafurpg:kotlin-gradle

Conversation

@olafurpg

@olafurpg olafurpg commented Oct 18, 2021

Copy link
Copy Markdown
Contributor

Previously, running lsif-java index in a Gradle project only indexed
Java and Scala sources. Now, we also index Kotlin sources.

Besides the automated tests in this PR, this change was manually validated on the kotest/kotest repo which is a large-ish (1.2k Kotlin sources) multiplatform project that you can browse with precise code intel here https://sourcegraph.com/github.com/kotest/kotest@7ccb6ef/-/blob/kotest-common/src/jvmMain/kotlin/io/kotest/common/platform.kt?L3:22#tab=references

Fixes #339

Previously, running `lsif-java index` in a Gradle project only indexed
Java and Scala sources. Now, we also index Kotlin sources.
@olafurpg
olafurpg requested a review from Strum355 October 18, 2021 16:31
@Strum355

Copy link
Copy Markdown
Contributor

I have no idea what I did to make this work, so this is a nice surprise

image

@olafurpg

Copy link
Copy Markdown
Contributor Author

@Strum355 kudos to the Kotlin compiler team for designing it in a way you don't have to know why that works!

@olafurpg
olafurpg merged commit 2a6cc1f into scip-code:main Oct 19, 2021
@olafurpg
olafurpg deleted the kotlin-gradle branch October 19, 2021 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Kotlin Gradle builds

2 participants