Skip to content
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

Allow suppression of Kotlin compiler version mismatch warning #13020

Open
cesar1000 opened this issue May 5, 2020 · 8 comments
Open

Allow suppression of Kotlin compiler version mismatch warning #13020

cesar1000 opened this issue May 5, 2020 · 8 comments
Labels
a:feature A new functionality in:kotlin-dsl

Comments

@cesar1000
Copy link

Current Behavior

When using Kotlin DSL, overriding the version of the Kotlin compiler in the script classpath results in this warning:

WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.3.70` that might work differently than in the requested version `1.3.72`.

Expected Behavior

The mismatch is inconsequential in a majority of cases, and it's distracting that it shows up consistently in the output without an ability to disable. I understand that disabling unconditionally would defeat the purpose of the check, but it would be nice to have the ability to whitelist versions that are known to work.

Context

Tested on v6.3.

@counter-reverse
Copy link

There is already an option --warning-mode none I will use it and fix this issue. please assign me @eskatos .

@audkar
Copy link

audkar commented Jan 7, 2021

Does this option hides this one particular warning or all warnings? IMO second option is not suitable for any production project

@counter-reverse
Copy link

@mahmoud-k yes it fix all warnings instead of only one. I can only agree with you. Fix one warning would be better. I will see what I can do.

@counter-reverse
Copy link

counter-reverse commented Jul 30, 2021

I am still on this issue. Do not loose hope.

Could you reopen my PR #16004 ? I am still on this issue.

@mochadwi
Copy link

mochadwi commented Aug 25, 2021

unfortunately gradle --warning-mode none didn't suppress the warning in our case :(

@counter-reverse
Copy link

I am still working on.

@mgroth0
Copy link

mgroth0 commented May 25, 2022

Is there any way to suppress it now? Using gradle 7.3.3

@piefel
Copy link

piefel commented Oct 9, 2023

The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.8.20` that might work differently than in the requested version `1.8.22`.

Using Gradle 8.2.1; quite a useless warning.

PS: Why is the error message using backticks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:kotlin-dsl
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants