Skip to content

Commit

Permalink
Add missing dependencies so we can build in parallel (elastic#43672)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpar-t authored Jun 28, 2019
1 parent d1ff981 commit a46d779
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion distribution/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ task buildTransportModules {

void copyModule(Sync copyTask, Project module) {
copyTask.configure {
dependsOn { module.bundlePlugin }
dependsOn "${module.path}:bundlePlugin"
from({ zipTree(module.bundlePlugin.outputs.files.singleFile) }) {
includeEmptyDirs false

Expand Down Expand Up @@ -167,6 +167,7 @@ buildDefaultLog4jConfig.doLast(writeLog4jProperties)

// copy log4j2.properties from modules that have it
void copyLog4jProperties(Task buildTask, Project module) {
buildTask.dependsOn "${module.path}:bundlePlugin"
buildTask.doFirst {
FileTree tree = zipTree(module.bundlePlugin.outputs.files.singleFile)
FileTree filtered = tree.matching {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugin/sql/sql-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ dependencyLicenses {
* can be easily shipped around and used.
*/
jar {
dependsOn configurations.runtimeClasspath
from({
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}) {
// We don't need the META-INF from the things we bundle. For now.
exclude 'META-INF/*'
Expand Down

0 comments on commit a46d779

Please sign in to comment.