plugins {
    `kotlin-dsl`
}

group = "gradlebuild"

description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
    compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.10.3")

    // TODO remove and keep 1.7 only once wrapper is updated
    if (KotlinVersion.CURRENT.isAtLeast(1, 7)) {
        implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.4.1")
        implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
    } else {
        implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.3")
        implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")

    }
    implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.8.0")
}

plugins {
    `kotlin-dsl`
}

group = "gradlebuild"

description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
    compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.10.3")

    implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.4.1")
    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
    implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.8.0")
}

Remove Kotlin <> 1.7 branching in build logic
Remove Kotlin <> 1.7 branching in build logic

Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>

gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle