Why isn't the latest version of Kotlin being found in this case? #823
-
The snippets below are pared down from a gradle plugin we have that in turn
and buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.50.0'
id 'java-gradle-plugin'
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} If I run
However, if I add the following to the id 'org.jetbrains.kotlin.jvm' version "$kotlin_version" and then run
So addiing the plugin dependency "fixes" the issue, but why is this necessary (I'm using Gradle 8.1.1, in case it matters.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
I'm not sure. If I drop down a few plugin versions, e.g. compare v46 and v47, then it shows up. Can you confirm? If so, then the only change that looks relevant came from the Gradle team (#768) |
Beta Was this translation helpful? Give feedback.
This issue certainly seems related to that linked change, and how the plugin isn't building a query dependency for the Kotlin plugin. I'll take a closer look next week.