mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fixes projects refs in build (elastic/elasticsearch#771)
The build would fail certain task (e.g. `gradle tasks` and `gradle :prelert-legacy:test`) if run from the elasticsearch root directory because the project references in the build were not abolute project paths from the root, they were relative to the `prelert-legacy` project. This change fixes the references so they are all absolute project paths. Original commit: elastic/x-pack-elasticsearch@e549533834
This commit is contained in:
parent
cd2332730b
commit
db0f4c0977
12
build.gradle
12
build.gradle
@ -32,11 +32,11 @@ allprojects {
|
||||
}
|
||||
|
||||
task bundlePack(type: Zip) {
|
||||
onlyIf { project('kibana').bundlePlugin.enabled }
|
||||
dependsOn 'elasticsearch:bundlePlugin'
|
||||
dependsOn 'kibana:bundlePlugin'
|
||||
from { zipTree(project('elasticsearch').bundlePlugin.outputs.files.singleFile) }
|
||||
from { zipTree(project('kibana').bundlePlugin.outputs.files.singleFile) }
|
||||
onlyIf { project(':prelert-legacy:kibana').bundlePlugin.enabled }
|
||||
dependsOn ':prelert-legacy:elasticsearch:bundlePlugin'
|
||||
dependsOn ':prelert-legacy:kibana:bundlePlugin'
|
||||
from { zipTree(project(':prelert-legacy:elasticsearch').bundlePlugin.outputs.files.singleFile) }
|
||||
from { zipTree(project(':prelert-legacy:kibana').bundlePlugin.outputs.files.singleFile) }
|
||||
destinationDir file('build/distributions')
|
||||
baseName = 'ml'
|
||||
version = VersionProperties.elasticsearch
|
||||
@ -71,7 +71,7 @@ task assemble(dependsOn: bundlePack) {
|
||||
description = 'Assembles the outputs of this project.'
|
||||
}
|
||||
|
||||
task test(dependsOn: [':elasticsearch:test', ':kibana:test']) {
|
||||
task test(dependsOn: [':prelert-legacy:elasticsearch:test', ':prelert-legacy:kibana:test']) {
|
||||
group = 'Build'
|
||||
description = 'Assembles and tests this project.'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user