Hugo Costa
07/03/2025, 6:50 AM2.0.21
(don't ask) which is failing with
java.lang.NoSuchMethodError: 'org.gradle.api.provider.Provider org.gradle.api.provider.Provider.forUseAtConfigurationTime()'
at org.jetbrains.kotlin.gradle.plugin.internal.ConfigurationTimePropertiesAccessorG6.usedAtConfigurationTime(ConfigurationTimePropertiesAccessorG6.kt:19)
at org.jetbrains.kotlin.gradle.plugin.internal.ConfigurationTimePropertiesAccessorKt.usedAtConfigurationTime(ConfigurationTimePropertiesAccessor.kt:49)
at org.jetbrains.kotlin.gradle.utils.FileUtilsKt.getLocalProperties(fileUtils.kt:145)
at org.jetbrains.kotlin.gradle.internal.properties.PropertiesBuildService$Companion$registerIfAbsent$1.execute(PropertiesBuildService.kt:168)
at org.jetbrains.kotlin.gradle.internal.properties.PropertiesBuildService$Companion$registerIfAbsent$1.execute(PropertiesBuildService.kt:167)
Just want to confirm - is this a failure you'd expect in the gradle85
variant?Hugo Costa
07/03/2025, 7:04 AMgradle85
variant. By manually removing main
it worksHugo Costa
07/03/2025, 7:24 AMmain
instead of gradle85
, and that's what's causing us the issue?tapchicoma
07/03/2025, 7:28 AM2.0.21
is not compatible with Gradle 9tapchicoma
07/03/2025, 7:28 AM2.1.21
should work in most casesHugo Costa
07/03/2025, 7:36 AMHugo Costa
07/03/2025, 7:36 AMHugo Costa
07/03/2025, 7:37 AMGradleRunner
and we weren't specifying what version of Gradle it is running, so the Kotlin Gradle Plugin was defaulting to main
Hugo Costa
07/03/2025, 7:38 AMtapchicoma
07/03/2025, 7:39 AMHugo Costa
07/03/2025, 7:41 AMKOTLIN_1_4
happened just on the gradle plugin, the idea here is that for whatever packages I need that compatibility, I could set it to 2.0.21 and it'd just work?tapchicoma
07/03/2025, 7:41 AM-language-version 1.4
via freeCompilerArgs
tapchicoma
07/03/2025, 7:42 AMHugo Costa
07/03/2025, 7:42 AMHugo Costa
07/03/2025, 7:42 AMtapchicoma
07/03/2025, 7:44 AMI assume the removal of theAlso we are working on restoring some DSL support for old values that could be used with older Kotlin compiler versionshappened just on the gradle pluginKOTLIN_1_4
Hugo Costa
07/03/2025, 8:17 AMGradleRunner
, with a particular Gradle version, will attempt to download it, so it works well locally, but not remotely where it is network jailed.
Yahor, there is no way for me to specify the Gradle variant right? By default, it can't find an optimal one, it defaults to main
😕. Would it be possible to change it from main
to whatever is the latest one?Hugo Costa
07/03/2025, 8:18 AMtapchicoma
07/03/2025, 10:11 AMgradle8.13
should be used with Gradle 9.0. You could provide directly to the test https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/2.2.0/kotlin-gradle-plugin-2.2.0-gradle813.jar via GradleRunner.withPluginClasspath
tapchicoma
07/03/2025, 11:02 AMHugo Costa
07/03/2025, 11:04 AM--languageVersion 1.4
, and an untold amount of customers that also use it. If we elevate the number, a lot of these packages will need to be fixed. It's hard to get these things done at such a scale. You do not want to know how difficult it was (still ongoing) to get people off JDK8.tapchicoma
07/03/2025, 11:06 AMIt's hard to get these things done at such a scaleIn theory you could try to look into OpenRewrite rules such mass migration 🤔
Hugo Costa
07/03/2025, 11:13 AM