plugins {
    `java-gradle-plugin`
    kotlin("jvm") version embeddedKotlinVersion
    `kotlin-dsl`
    `maven-publish`
}

group = "my"

version = "1.0"

apply<org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins>()

dependencies {
    kotlinCompilerPluginClasspath(gradleApi())
    kotlinCompilerPluginClasspath(gradleKotlinDslJars())
}

publishing {
    repositories {
        maven(url = "build/repository")
    }
}

repositories {
    kotlinDev()
    gradlePluginPortal()
}

plugins {
    `java-gradle-plugin`
    kotlin("jvm") version embeddedKotlinVersion
    `kotlin-dsl`
    `maven-publish`
}

group = "my"

version = "1.0"

apply<org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins>()

publishing {
    repositories {
        maven(url = "build/repository")
    }
}

repositories {
    kotlinDev()
    gradlePluginPortal()
}

Remove unnecessary kotlinCompilerPluginClasspath dependencies from sample
Remove unnecessary kotlinCompilerPluginClasspath dependencies from sample

robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle