I want to use the Gradle Enterprise Plugin so that my GitHub CI can run with build scan using --scan
. However, based on official doc, this plugin must be applied in the root settings.gradle.kts
file. So right now I have the following in the root settings.gradle.kts
file:
// in my root settings.gradle.kts file
dependencyResolutionManagement {
repositories {
// various repos
}
includeBuild("gradle/platform")
// gradle/libs.versions.toml is automatically imported if exists
}
plugins {
id("com.gradle.enterprise") version ("3.12.1")
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
My question is: How to version catalog in the root settings.gradle.kts
file, so that I can do somthing like this:
// in my root settings.gradle.kts file
dependencyResolutionManagement {
repositories {
// various repos
}
includeBuild("gradle/platform")
// gradle/libs.versions.toml is automatically imported if exists
}
plugins {
alias(libs.plugins.gradle.enterpise) // using verion catalog
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
Any idea how to archive this?