2021-03-11 00:06:21 -05:00
|
|
|
import org.opensearch.gradle.info.BuildParams
|
2020-01-23 17:54:57 -05:00
|
|
|
|
2017-06-16 11:46:34 -04:00
|
|
|
// Subprojects aren't published so do not assemble
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
subprojects {
|
|
|
|
Task assemble = project.tasks.findByName('assemble')
|
|
|
|
if (assemble) {
|
2018-09-04 00:32:14 -04:00
|
|
|
assemble.enabled = false
|
2017-06-16 11:46:34 -04:00
|
|
|
}
|
2020-01-23 17:54:57 -05:00
|
|
|
|
|
|
|
// Disable example project testing with FIPS JVM
|
|
|
|
tasks.withType(Test) {
|
|
|
|
onlyIf {
|
|
|
|
BuildParams.inFipsJvm == false
|
|
|
|
}
|
|
|
|
}
|
2017-06-16 11:46:34 -04:00
|
|
|
}
|
|
|
|
}
|
2019-06-04 16:50:23 -04:00
|
|
|
|
|
|
|
configure(project('painless-whitelist')) {
|
2019-11-14 06:01:23 -05:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
2021-03-11 00:06:21 -05:00
|
|
|
substitute module('org.opensearch.plugin:opensearch-scripting-painless-spi') with project(':modules:lang-painless:spi')
|
|
|
|
substitute module('org.opensearch.test:logger-usage') with project(':test:logger-usage')
|
2019-06-04 16:50:23 -04:00
|
|
|
}
|
2019-11-14 06:01:23 -05:00
|
|
|
}
|
2019-06-04 16:50:23 -04:00
|
|
|
}
|
|
|
|
|