Remove the assemble task from projects not published (elastic/x-pack-elasticsearch#1721)
Removes the `assemble` task from projects that aren't published to speed up `gradle assemble` so the unified release can call it. Original commit: elastic/x-pack-elasticsearch@43dfcc15f3
This commit is contained in:
parent
8abf4c3119
commit
0970c509bc
|
@ -31,6 +31,7 @@ subprojects {
|
||||||
}
|
}
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
apply plugin: 'distribution'
|
apply plugin: 'distribution'
|
||||||
|
tasks.remove(assemble)
|
||||||
|
|
||||||
def (String major, String minor, String bugfix) = bwcVersion.split('\\.')
|
def (String major, String minor, String bugfix) = bwcVersion.split('\\.')
|
||||||
def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.')
|
def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.')
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
/* Remove assemble on all qa projects because we don't need to publish
|
||||||
|
* artifacts for them. */
|
||||||
|
gradle.projectsEvaluated {
|
||||||
|
subprojects {
|
||||||
|
Task assemble = project.tasks.findByName('assemble')
|
||||||
|
if (assemble) {
|
||||||
|
project.tasks.remove(assemble)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue