any idea of what ```An exception occurred applyin...
# gradle
t
any idea of what
Copy code
An exception occurred applying plugin request [id: 'org.gradle.kotlin.kotlin-dsl', version: '3.2.7']
> Failed to apply plugin class 'org.gradle.kotlin.dsl.plugins.base.KotlinDslBasePlugin'.
   > Could not create an instance of type org.gradle.kotlin.dsl.plugins.dsl.KotlinDslPluginOptions.
      > 'java.lang.Object org.gradle.internal.deprecation.DeprecationMessageBuilder$DeprecateProperty$WithDeprecationTimeline.withUserManual(java.lang.String, java.lang.String)'
is? using gradle 7.6 and
Copy code
plugins {
  id "org.gradle.kotlin.kotlin-dsl" version "3.2.7"
  id "java-gradle-plugin"
}
if I downgrade to 3.2.6 it works
h
Please don't specify a version for
kotlin-dsl
. It is hardcoded for each Gradle version, just use it without the version.
t
that is what a warning told me, but I had to migrate my gradle script to kotlin
h
so? just use `plugins {
kotlin-dsl
}`
t
Copy code
plugins {
  id "org.gradle.kotlin.kotlin-dsl"
  id "java-gradle-plugin"
}
failed in
build.gradle
, but once I changed to kts and
Copy code
plugins {
  `kotlin-dsl`
  id("java-gradle-plugin")
}
it worked
h
This Is The Way™
427 Views