mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
21b1db2965
Removes the `assemble` task from the `build` task when we have removed `assemble` from the project. We removed `assemble` from projects that aren't published so our releases will be faster. But That broke CI because CI builds with `gradle precommit build` and, it turns out, that `build` includes `check` and `assemble`. With this change CI will only run `check` for projects without an `assemble`.
11 lines
269 B
Groovy
11 lines
269 B
Groovy
// Subprojects aren't published so do not assemble
|
|
gradle.projectsEvaluated {
|
|
subprojects {
|
|
Task assemble = project.tasks.findByName('assemble')
|
|
if (assemble) {
|
|
project.tasks.remove(assemble)
|
|
project.build.dependsOn.remove('assemble')
|
|
}
|
|
}
|
|
}
|