This message was deleted.
# community-support
s
This message was deleted.
j
Project is
kotlin("jvm") version "1.6.10"
with gradle 6.8 Plugin is 1.6.21 built with gradle 7.4
c
kotlin("jvm") version "1.6.10"
should not be mixed in with Gradle plugin/task development; that is via `kotlin-dsl`and pulls in the Gradle-embedded kotlin.
j
Hi Chris. Just back to this from a long weekend. Not sure I fully understand. Should I add kotlin-dsl and remove the kotlin("jvm") part?
c
correct.
kotlin-dsl
provides the Gradle-appropriate Kotlin libs (and includes
java-gradle-plugin
as well).
j
I need the app to have the kotlin version 1.6.10 however so something still seems off. I tried as you mentioned but got the same error: My plugins section looks like this:
Copy code
plugins {
    java
    `kotlin-dsl`
    // kotlin("jvm") version "1.6.10"

     id("com.ea.gradle.gradle-plugin.assertscans.healthycode.HealthyCodeScan") version "6.5.2-SNAPSHOT"
}
c
two different things. Plugin/task development projects use
kotlin-dsl
. Application projects (that use Kotlin) use
kotlin("jvm")
j
I might have explained this poorly. The plugin is done and written and works in other projects. This other application project I'm adding it to generates the
Execution failed for task ':healthyCodeScan'. > kotlin/jvm/JvmInline
So adding kotlin-dsl to the application project isn't what I need.
c
Ah. It looks like your published plugin is for an incompatible version of Gradle.
j
app project is 1.6.10 and the plugin is 1.6.21.
c
what Gradle version was the plugin compiled with? What Gradle version are you running the plugin on?
j
plugin is 7.4 and the app is 6.8
Seems like that is what to try.
Based on the compatibility link you sent.
c
yep. The Kotlin version in 6.8 is a mismatch to the plugin/7.4 version.
generally you don’t want to use the same plugin version across major Gradle releases.
j
Thanks Chris!
c
this appears to be what is tripping you up; proper fix is to provide Kotlin 1.5+, which is Gradle 7.2+.
j
FYI, downgrading Jackson in the plugin from 2.13 to 2.12 did the trick here so the app did not need to change.