mirror of
https://github.com/gradle/actions.git
synced 2025-04-21 18:29:18 +08:00
Simplify the classpath definition based on the plugin version
This commit is contained in:
parent
68fbda8e99
commit
157fcff09d
@ -53,9 +53,15 @@ initscript {
|
||||
|
||||
dependencies {
|
||||
if (develocityPluginVersion) {
|
||||
classpath atLeastGradle5 ?
|
||||
shouldApplyDevelocityPlugin ? "com.gradle:develocity-gradle-plugin:$develocityPluginVersion" : "com.gradle:gradle-enterprise-gradle-plugin:$develocityPluginVersion" :
|
||||
"com.gradle:build-scan-plugin:1.16"
|
||||
if (atLeastGradle5) {
|
||||
if (GradleVersion.version(develocityPluginVersion) >= GradleVersion.version("3.17")) {
|
||||
classpath "com.gradle:develocity-gradle-plugin:$develocityPluginVersion"
|
||||
} else {
|
||||
classpath "com.gradle:gradle-enterprise-gradle-plugin:$develocityPluginVersion"
|
||||
}
|
||||
} else {
|
||||
classpath "com.gradle:build-scan-plugin:1.16"
|
||||
}
|
||||
}
|
||||
|
||||
if (ccudPluginVersion && atLeastGradle4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user