2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* The OpenSearch Contributors require contributions made to
|
|
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
|
|
* compatible open source license.
|
|
|
|
*
|
|
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
|
|
* GitHub history for details.
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
2022-05-17 16:34:05 -04:00
|
|
|
configure(project('painless-allowlist')) {
|
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
|
|
|
}
|