mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 04:45:37 +00:00
This commit is contained in:
parent
1ca5dd13de
commit
f86de2a9cb
@ -34,6 +34,8 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
|
||||
import org.elasticsearch.gradle.test.ErrorReportingTestListener
|
||||
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster
|
||||
import org.elasticsearch.gradle.testclusters.TestClustersPlugin
|
||||
import org.elasticsearch.gradle.testclusters.TestDistribution
|
||||
import org.elasticsearch.gradle.tool.Boilerplate
|
||||
import org.gradle.api.Action
|
||||
import org.gradle.api.GradleException
|
||||
import org.gradle.api.InvalidUserDataException
|
||||
@ -158,6 +160,7 @@ class BuildPlugin implements Plugin<Project> {
|
||||
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = project.extensions.findByName(TestClustersPlugin.EXTENSION_NAME) as NamedDomainObjectContainer<ElasticsearchCluster>
|
||||
if (testClusters != null) {
|
||||
testClusters.all { ElasticsearchCluster cluster ->
|
||||
cluster.setTestDistribution(TestDistribution.DEFAULT)
|
||||
cluster.systemProperty 'javax.net.ssl.trustStorePassword', 'password'
|
||||
cluster.systemProperty 'javax.net.ssl.keyStorePassword', 'password'
|
||||
// Can't use our DiagnosticTrustManager with SunJSSE in FIPS mode
|
||||
|
@ -1,3 +1,5 @@
|
||||
import org.elasticsearch.gradle.info.BuildParams
|
||||
|
||||
// Subprojects aren't published so do not assemble
|
||||
gradle.projectsEvaluated {
|
||||
subprojects {
|
||||
@ -5,6 +7,13 @@ gradle.projectsEvaluated {
|
||||
if (assemble) {
|
||||
assemble.enabled = false
|
||||
}
|
||||
|
||||
// Disable example project testing with FIPS JVM
|
||||
tasks.withType(Test) {
|
||||
onlyIf {
|
||||
BuildParams.inFipsJvm == false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user