Closed fluidsonic closed 5 years ago
I have the same warning and behavior.
1.2.6 also presents the same error
I had the same problem and so am using version 1.2.2 like so:
plugins { id("org.gradle.kotlin.kotlin-dsl") version "1.2.2" }
N.B. for whatever reason if I just use the following, it works fine as well:
plugins { `kotlin-dsl` }
I prefer to explicitly mark the version number so I went with the former rather than the latter.
Each Gradle release is meant to be used with a specific version of the kotlin-dsl
plugin and compatibility between arbitrary Gradle releases and kotlin-dsl
plugin versions is not guaranteed.
Using an unexpected version of the kotlin-dsl
plugin in a build can cause hard to diagnose problems.
Starting with Gradle 5.4, a warning is emitted whenever an unexpected version of the kotlin-dsl
plugin is detected.
Although @eskatos has closed this issue, no solution was provided. I understand I need a specific version of the dsl for a specific version of Gradle. How do I know what version corresponds to gradle version?
@yoavgrosswild simply omit any version when requesting the kotlin-dsl
plugin:
plugins { `kotlin-dsl` }
We omit any version still receive this printed error noise in builds
plugins {
`kotlin-dsl`
`java-gradle-plugin`
kotlin("jvm") version "1.3.61"
id("org.jlleitschuh.gradle.ktlint") version "9.1.1"
id("com.google.protobuf") version "0.8.10"
}
Gradle 6.0.1
> Configure project :plugins
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.3.50` that might work differently than in the requested version `1.3.61`.
It seems that kotlin-dsl is pinned to specific versions of kotlin, and it would be useful to have a way to suppress this if the dsl is not going to keep up with recent versions of kotlin and allow users to opt out of this, as it warns in build outputs on every gradle invocation. 1.3.50 was released August 2019.
The problem still persists for Kotlin 1.3.72
plugins {
`kotlin-dsl`
jacoco
kotlin("jvm") version "1.3.72"
}
The
embedded-kotlin
andkotlin-dsl
plugins rely on features of Kotlin1.3.70
that might work differently than in the requested version1.3.72
Please follow/upvote https://github.com/gradle/gradle/issues/13020 about being able to silence the warning if you accept the risk.
Expected Behavior
kotlin-dsl
1.2.2 works just fine so1.2.3
…1.2.5
should work just fine too.Current Behavior
1.2.4
&1.2.5
:1.2.3
:Context
I just regularly update dependencies and don't expect a patch update to break my build.
Steps to Reproduce (for bugs)
1.2.5: https://scans.gradle.com/s/2hloqem2t4ef6 1.2.3: https://scans.gradle.com/s/5uocitqfgjofg
Your Environment
on the command line