Disable assemble task instead of removing it (#33348)
This commit is contained in:
parent
78df00ff24
commit
7f7e8fd733
|
@ -21,10 +21,7 @@ apply plugin: 'elasticsearch.build'
|
|||
apply plugin: 'application'
|
||||
mainClassName = 'org.openjdk.jmh.Main'
|
||||
|
||||
// Not published so no need to assemble
|
||||
tasks.remove(assemble)
|
||||
build.dependsOn.remove('assemble')
|
||||
|
||||
assemble.enabled = false
|
||||
archivesBaseName = 'elasticsearch-benchmarks'
|
||||
|
||||
test.enabled = false
|
||||
|
|
|
@ -579,13 +579,11 @@ gradle.projectsEvaluated {
|
|||
if (project.path.startsWith(':qa')) {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
project.tasks.remove(assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
}
|
||||
Task dependenciesInfo = project.tasks.findByName('dependenciesInfo')
|
||||
if (dependenciesInfo) {
|
||||
project.tasks.remove(dependenciesInfo)
|
||||
project.precommit.dependsOn.remove('dependenciesInfo')
|
||||
dependenciesInfo.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -547,7 +547,7 @@ class BuildPlugin implements Plugin<Project> {
|
|||
}
|
||||
// build poms with assemble (if the assemble task exists)
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
if (assemble && assemble.enabled) {
|
||||
assemble.dependsOn(generatePOMTask)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,8 +35,7 @@ public class DocsTestPlugin extends RestTestPlugin {
|
|||
// The distribution can be configured with -Dtests.distribution on the command line
|
||||
project.integTestCluster.distribution = System.getProperty('tests.distribution', 'zip')
|
||||
// Docs are published separately so no need to assemble
|
||||
project.tasks.remove(project.assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
project.tasks.assemble.enabled = false
|
||||
Map<String, String> defaultSubstitutions = [
|
||||
/* These match up with the asciidoc syntax for substitutions but
|
||||
* the values may differ. In particular {version} needs to resolve
|
||||
|
|
|
@ -23,8 +23,7 @@ apply plugin: 'application'
|
|||
group = 'org.elasticsearch.client'
|
||||
|
||||
// Not published so no need to assemble
|
||||
tasks.remove(assemble)
|
||||
build.dependsOn.remove('assemble')
|
||||
assemble.enabled = true
|
||||
|
||||
archivesBaseName = 'client-benchmarks'
|
||||
mainClassName = 'org.elasticsearch.client.benchmark.BenchmarkMain'
|
||||
|
|
|
@ -28,8 +28,7 @@ esplugin {
|
|||
}
|
||||
|
||||
// Not published so no need to assemble
|
||||
tasks.remove(assemble)
|
||||
build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
|
||||
dependencyLicenses.enabled = false
|
||||
dependenciesInfo.enabled = false
|
||||
|
|
|
@ -50,8 +50,7 @@ subprojects {
|
|||
|
||||
apply plugin: 'distribution'
|
||||
// Not published so no need to assemble
|
||||
tasks.remove(assemble)
|
||||
build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
|
||||
File checkoutDir = file("${buildDir}/bwc/checkout-${bwcBranch}")
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@ gradle.projectsEvaluated {
|
|||
subprojects {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
project.tasks.remove(assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ gradle.projectsEvaluated {
|
|||
subprojects {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
project.tasks.remove(assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,12 +20,11 @@ gradle.projectsEvaluated {
|
|||
subprojects {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
project.tasks.remove(assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
}
|
||||
Task dependenciesInfo = project.tasks.findByName('dependenciesInfo')
|
||||
if (dependenciesInfo) {
|
||||
project.precommit.dependsOn.remove('dependenciesInfo')
|
||||
dependenciesInfo.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,12 +25,11 @@ gradle.projectsEvaluated {
|
|||
subprojects {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
project.tasks.remove(assemble)
|
||||
project.build.dependsOn.remove('assemble')
|
||||
assemble.enabled = false
|
||||
}
|
||||
Task dependenciesInfo = project.tasks.findByName('dependenciesInfo')
|
||||
if (dependenciesInfo) {
|
||||
project.precommit.dependsOn.remove('dependenciesInfo')
|
||||
dependenciesInfo.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue