import org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion plugins { `kotlin-dsl` } kotlin { jvmToolchain { languageVersion.set(JavaLanguageVersion.of(8)) } } dependencies { implementation(libs.gradlePlugin.dokka) implementation(libs.gradlePlugin.kotlin) implementation(libs.gradlePlugin.shadow) implementation("org.gradle.kotlin:gradle-kotlin-dsl-plugins:$expectedKotlinDslPluginsVersion") implementation(libs.gradlePlugin.gradlePublish) // workaround for accessing version-catalog in convention plugins // https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) }