mirror of
https://github.com/gradle/actions.git
synced 2025-04-23 03:09:20 +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 {
|
dependencies {
|
||||||
if (develocityPluginVersion) {
|
if (develocityPluginVersion) {
|
||||||
classpath atLeastGradle5 ?
|
if (atLeastGradle5) {
|
||||||
shouldApplyDevelocityPlugin ? "com.gradle:develocity-gradle-plugin:$develocityPluginVersion" : "com.gradle:gradle-enterprise-gradle-plugin:$develocityPluginVersion" :
|
if (GradleVersion.version(develocityPluginVersion) >= GradleVersion.version("3.17")) {
|
||||||
"com.gradle:build-scan-plugin:1.16"
|
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) {
|
if (ccudPluginVersion && atLeastGradle4) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user