-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Drop unneded kotlin dep #28375
Drop unneded kotlin dep #28375
Conversation
Actually it looks like the "Runtime JAR files in the classpath have the version 1.4" warnings are still happening in the presubmit LUCI builders: |
@blasten do you know any Gradle voodoo for this? |
is this https://kotlinlang.org/docs/compiler-reference.html#language-version-version ? There's a config object provided the Kotlin plugin: https://kotlinlang.org/docs/gradle.html#attributes-specific-for-jvm |
@blasten yes, but those seem to be JVM parameters rather than parameters to pass to the Kotlin compiler. |
@dnfield what about this ?: compileKotlin {
kotlinOptions {
languageVersion = '<version>'
}
} |
That didn't quite work, trying something based on https://stackoverflow.com/questions/44141076/compilekotlin-block-in-build-gradle-file-throws-error-could-not-find-method-com |
Unfortunately this means we have to use the kotlin plugin which means we have to take more dependencies, but this is now passing locally with no warnings. @blasten - do we get much value from using leakcanary? |
Ideally, we keep leakcanary. We don't use it a lot, but it's worth doing more memory-leak tests in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This was added to avoid warnings given about the wrong kotlin runtime version - upstream dependencies have again changed and it's no longer needed.
I think ideally we'd be passing the right
-language-version
argument, but I really don't know how to do that properly for gradle. Maybe @blasten knows.