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
Gradle test executors use the wrong version of Kotlin stdlib with java-gradle-plugin #12692
Comments
@cesar1000 Thanks for the report. |
It looks like the issue shows up when using I put up a tiny reproducer here: https://github.com/cesar1000/wrong-kotlin-version. |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Gradle or if you have a good use case for this feature, please feel free to to let know so we can reopen the issue. Please try to provide steps to reproduce, a quick explanation of your use case or a high-quality pull request. |
I think this is an instance of #1835. |
Expected Behavior
Tests should use the version of Kotlin stdlib declared in the test runtime classpath.
Current Behavior
When applying
java-gradle-plugin
, tests use Kotlin stdlib 1.3.61 consistently (with Gradle 6.2.2), even if the build is configured to use 1.3.71.Context
It seems like the application classpath of the test executor worker contains version 1.3.61 of Kotlin stdlib, and that gets picked up at runtime even of the build is configured to use 1.3.71:
The application classpath in the debug logs looks like this:
Steps to Reproduce
A Kotlin project with
java-gradle-plugin
and Kotlin stdlib 1.3.71 would do. Just watch forKotlinVersion.CURRENT
in your test.Your Environment
Gradle 6.2.2 with Kotlin 1.3.71
The text was updated successfully, but these errors were encountered: