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

Misleading message about Kotlin language version #1156

Closed
jansorg opened this issue Oct 11, 2022 · 1 comment
Closed

Misleading message about Kotlin language version #1156

jansorg opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@jansorg
Copy link

jansorg commented Oct 11, 2022

Describe the bug
The message below is misleading.
With Kotlin, only languageVersion=1.4 is allowed.

> Task :plugin:verifyPluginConfiguration
[gradle-intellij-plugin :plugin:verifyPluginConfiguration] The following plugin configuration issues were found:
- The Kotlin configuration specifies languageVersion=1.4 but IntelliJ Platform 2021.1 requires languageVersion=1.4.32.
See: https://jb.gg/intellij-platform-versions

I attempted to define 1.4.32 as language version:

withType<KotlinCompile> {
            kotlinOptions {
                // ...
                languageVersion = if (platformVersion >= 212) "1.6" else "1.4.32"
               // ...
        }
e: Unknown language version: 1.4.32
Supported language versions: 1.3 (deprecated), 1.4 (deprecated), 1.5, 1.6, 1.7, 1.8 (experimental), 1.9 (experimental)
w: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin

To Reproduce
See above

Expected behavior
No warning if major.minor match the Kotlin language version (i.e. 1.4)

Environment:

  • OS: Linux
  • Gradle IntelliJ Plugin Version: 1.10.0-SNAPSHOT
  • Gradle Version: 7.5.2
@jansorg jansorg added the bug label Oct 11, 2022
@jansorg jansorg changed the title Misleading message Misleading message about Kotlin language version Oct 11, 2022
@YannCebron YannCebron added this to the next milestone Oct 11, 2022
@hsz hsz closed this as completed Nov 17, 2022
@mlytvyn
Copy link

mlytvyn commented Mar 4, 2023

@hsz, jFYI.
Same warning for 1.8 Kotlin, IDEA 231.7864.76 & gradle plugin 1.13.1

configuration

withType<KotlinCompile>().configureEach {
        kotlinOptions {
            jvmTarget = sourceVersion
            apiVersion = "1.8"
            languageVersion = "1.8"
        }
    }

Warning message:

> Task :verifyPluginConfiguration
[gradle-intellij-plugin :verifyPluginConfiguration] The following plugin configuration issues were found:
- The Kotlin configuration specifies apiVersion=1.8 but since-build='231.7864.76' property requires apiVersion=1.8.0.
See: https://jb.gg/intellij-platform-versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants