Skip to content

Add support for Kotlin Gradle projects #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

olafurpg
Copy link
Member

@olafurpg olafurpg commented Oct 18, 2021

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
Contributor

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

image

@olafurpg
Copy link
Member 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 sourcegraph: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