41 lines
1.3 KiB
Groovy
41 lines
1.3 KiB
Groovy
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import org.elasticsearch.gradle.MavenFilteringHack
|
|
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
apply plugin: 'elasticsearch.rest-resources'
|
|
|
|
ext.pluginPaths = []
|
|
project(':plugins').getChildProjects().each { pluginName, pluginProject ->
|
|
if (BuildParams.inFipsJvm && pluginName == "ingest-attachment") {
|
|
// Do not attempt to install ingest-attachment in FIPS 140 as it is not supported (it depends on non-FIPS BouncyCastle)
|
|
return
|
|
}
|
|
pluginPaths << pluginProject.path
|
|
}
|
|
|
|
testClusters.matching { it.name == "integTest" }.configureEach {
|
|
pluginPaths.each { pluginPath ->
|
|
plugin pluginPath
|
|
}
|
|
}
|
|
|
|
ext.expansions = [
|
|
'expected.plugins.count': pluginPaths.size()
|
|
]
|
|
|
|
tasks.named("processTestResources").configure {
|
|
assert pluginPaths.size() > 0
|
|
inputs.properties(expansions)
|
|
MavenFilteringHack.filter(it, expansions)
|
|
}
|