2021-04-26 20:53:55 +08:00
|
|
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
2017-06-16 23:46:34 +08:00
|
|
|
// Subprojects aren't published so do not assemble
|
2021-06-23 17:35:47 +08:00
|
|
|
subprojects {
|
|
|
|
project.tasks.matching { it.name.equals('assemble') }.configureEach {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
if (BuildParams.inFipsJvm) {
|
|
|
|
project.tasks.configureEach {
|
2020-11-12 19:04:15 +08:00
|
|
|
enabled = false
|
2017-06-16 23:46:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-04 07:18:45 +08:00
|
|
|
|
|
|
|
configure(project('painless-whitelist')) {
|
2019-11-13 18:14:04 +08:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
substitute module('org.elasticsearch.plugin:elasticsearch-scripting-painless-spi') with project(':modules:lang-painless:spi')
|
|
|
|
substitute module('org.elasticsearch.test:logger-usage') with project(':test:logger-usage')
|
2019-06-04 07:18:45 +08:00
|
|
|
}
|
2019-11-13 18:14:04 +08:00
|
|
|
}
|
2019-06-04 07:18:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
configure(project('security-authorization-engine')) {
|
2019-11-13 18:14:04 +08:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
substitute module('org.elasticsearch.plugin:x-pack-core') with project(':x-pack:plugin:core')
|
|
|
|
substitute module('org.elasticsearch.client:elasticsearch-rest-high-level-client') with project(':client:rest-high-level')
|
|
|
|
substitute module('org.elasticsearch.test:logger-usage') with project(':test:logger-usage')
|
2019-06-04 07:18:45 +08:00
|
|
|
}
|
2019-11-13 18:14:04 +08:00
|
|
|
}
|
|
|
|
}
|