Trying to create a gradle plugin in the buildsrc directory and get this cryptic error even though my build.gradle.kts and plugin definitions seem ok:
Cannot access 'java.lang.Object' which is a supertype of ConfigPlugin. Check your module classpath for missing or conflicting dependencies and there are bunch of warnings about Kotlin stdlib conflicts between 1.3.72 and 1.4.10.
Kotlin 1.4 includes its own stdlib so I don't see why it's complaining about these conflicts?
Gradle is version 6.7
Just an update...got the compiles to work by doing this...the buildscript kotlin plugin version has to match what's embedded in Gradle (totally not obvious).
You can set the project's Kotlin version in the dependencies list to 1.4 but it compiles about runtime JAR files in the classpath should not be different.
Also all the classes have code completion but everything in buildSrc is complaining that it can't find java.lang.Object and java.lang.Comparable.
Kotlin build scripts still feel "not quite ready"...haven't played with them in a while because it always seems like people are in pain when they use them, but code completion is nice 🙂