nugget/buildSrc/build.gradle.kts
2023-11-20 16:12:08 -07:00

22 lines
610 B
Text

plugins {
`kotlin-dsl`
`kotlin-dsl-precompiled-script-plugins`
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation(libs.gradle.licenser)
implementation(libs.gradle.spotless)
implementation(libs.gradle.shadow)
implementation(libs.gradle.kotlin.dsl)
implementation(libs.gradle.plugin.kotlin.withVersion(embeddedKotlinVersion))
implementation(libs.gradle.plugin.publish)
}
fun Provider<MinimalExternalModuleDependency>.withVersion(version: String): Provider<String> {
return map { "${it.module.group}:${it.module.name}:$version" }
}