mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
cd2332730b
This matches the way tests that need to run without an Elasticsearch bootstrap are run in core Elasticsearch. This should make merging to x-pack easier. Note that the no bootstrap tests now run after the integration tests, but this doesn't really matter. Original commit: elastic/x-pack-elasticsearch@5547f457b6
46 lines
1.3 KiB
Groovy
46 lines
1.3 KiB
Groovy
import org.elasticsearch.gradle.precommit.PrecommitTasks
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
name 'ml'
|
|
description 'Machine Learning Plugin'
|
|
classname 'org.elasticsearch.xpack.ml.MlPlugin'
|
|
}
|
|
|
|
configurations {
|
|
nativeBundle
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'net.sf.supercsv', name: 'super-csv', version:"${supercsvVersion}"
|
|
nativeBundle group: "${project.group}", name: 'ml-cpp', version:"${project.version}", classifier: 'darwin-x86_64', ext: 'zip'
|
|
nativeBundle group: "${project.group}", name: 'ml-cpp', version:"${project.version}", classifier: 'linux-x86_64', ext: 'zip'
|
|
nativeBundle group: "${project.group}", name: 'ml-cpp', version:"${project.version}", classifier: 'windows-x86_64', ext: 'zip'
|
|
testCompile group: 'org.ini4j', name: 'ini4j', version:"${ini4jVersion}"
|
|
}
|
|
|
|
integTest {
|
|
cluster {
|
|
//setting 'useNativeProcess', 'true'
|
|
distribution = 'zip'
|
|
}
|
|
}
|
|
|
|
bundlePlugin {
|
|
if (project.cppLocalDists) {
|
|
def localCppBundles = fileTree(dir: cppLocalDists).matching { include "ml-cpp-${project.version}-*.zip" }
|
|
for (outputFile in localCppBundles) {
|
|
from(zipTree(outputFile)) {
|
|
duplicatesStrategy 'exclude'
|
|
}
|
|
}
|
|
} else {
|
|
for (outputFile in configurations.nativeBundle) {
|
|
from(zipTree(outputFile)) {
|
|
duplicatesStrategy 'exclude'
|
|
}
|
|
}
|
|
}
|
|
}
|