plugins {
    `kotlin-dsl`
    id("com.diffplug.spotless") version "6.3.0"
}
buildscript {
    dependencyLocking {
        lockAllConfigurations()
    }
}
dependencyLocking {
    lockAllConfigurations()
}

spotless {
    kotlinGradle {
        ktlint("0.44.0")
    }
}

dependencies {
    implementation(plugin(id = "com.diffplug.spotless", version = "6.3.0"))
    implementation(plugin(id = "net.ltgt.errorprone", version = "2.0.2"))
    implementation(plugin(id = "net.ltgt.nullaway", version = "1.3.0"))
}

// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers
fun plugin(id: String, version: String) = "$id:$id.gradle.plugin:$version"

plugins {
    `kotlin-dsl`
    id("com.diffplug.spotless") version "6.3.0"
}
buildscript {
    dependencyLocking {
        lockAllConfigurations()
    }
}
dependencyLocking {
    lockAllConfigurations()
}

spotless {
    kotlinGradle {
        target("*.gradle.kts", "src/main/kotlin/**/*.gradle.kts")
        ktlint("0.44.0")
    }
}

dependencies {
    implementation(plugin(id = "com.diffplug.spotless", version = "6.3.0"))
    implementation(plugin(id = "net.ltgt.errorprone", version = "2.0.2"))
    implementation(plugin(id = "net.ltgt.nullaway", version = "1.3.0"))
}

// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers
fun plugin(id: String, version: String) = "$id:$id.gradle.plugin:$version"

Make sure build-logic precompiled plugins are formatted/checked
Make sure build-logic precompiled plugins are formatted/checked

tbroyer/gradle-incap-helper,tbroyer/gradle-incap-helper