Remove usage of deprecated compare gradle builds plugin (#42687)
This commit is contained in:
parent
bdd28cf4bb
commit
ac8a9515a3
25
build.gradle
25
build.gradle
|
@ -552,31 +552,6 @@ gradle.projectsEvaluated {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (System.properties.get("build.compare") != null) {
|
|
||||||
apply plugin: 'compare-gradle-builds'
|
|
||||||
compareGradleBuilds {
|
|
||||||
ext.referenceProject = System.properties.get("build.compare")
|
|
||||||
doFirst {
|
|
||||||
if (file(referenceProject).exists() == false) {
|
|
||||||
throw new GradleException(
|
|
||||||
"Use git worktree to check out a version to compare against to ../elasticsearch_build_reference"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sourceBuild {
|
|
||||||
gradleVersion = gradle.getGradleVersion()
|
|
||||||
projectDir = referenceProject
|
|
||||||
tasks = ["clean", "assemble"]
|
|
||||||
arguments = ["-Dbuild.compare_friendly=true"]
|
|
||||||
}
|
|
||||||
targetBuild {
|
|
||||||
tasks = ["clean", "assemble"]
|
|
||||||
// use -Dorg.gradle.java.home= to alter jdk versions
|
|
||||||
arguments = ["-Dbuild.compare_friendly=true"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
task resolveAllDependencies {
|
task resolveAllDependencies {
|
||||||
dependsOn tasks.matching { it.name == "pullFixture"}
|
dependsOn tasks.matching { it.name == "pullFixture"}
|
||||||
|
|
|
@ -922,10 +922,6 @@ class BuildPlugin implements Plugin<Project> {
|
||||||
jarTask.manifest.attributes('Change': shortHash)
|
jarTask.manifest.attributes('Change': shortHash)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Force manifest entries that change by nature to a constant to be able to compare builds more effectively
|
|
||||||
if (System.properties.getProperty("build.compare_friendly", "false") == "true") {
|
|
||||||
jarTask.manifest.getAttributes().clear()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// add license/notice files
|
// add license/notice files
|
||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
|
|
Loading…
Reference in New Issue