2016-11-18 10:21:39 -05:00
|
|
|
import org.elasticsearch.gradle.precommit.PrecommitTasks
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
|
|
|
|
esplugin {
|
2017-01-10 08:40:16 -05:00
|
|
|
name 'ml'
|
2017-01-17 09:45:00 -05:00
|
|
|
description 'Machine Learning Plugin'
|
2017-01-10 08:40:16 -05:00
|
|
|
classname 'org.elasticsearch.xpack.ml.MlPlugin'
|
2016-11-18 10:21:39 -05:00
|
|
|
}
|
|
|
|
|
2017-01-19 10:22:55 -05:00
|
|
|
configurations {
|
|
|
|
nativeBundle
|
|
|
|
}
|
|
|
|
|
2016-11-18 10:21:39 -05:00
|
|
|
dependencies {
|
|
|
|
compile group: 'net.sf.supercsv', name: 'super-csv', version:"${supercsvVersion}"
|
2017-01-19 10:36:45 -05:00
|
|
|
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'
|
2016-12-02 10:17:40 -05:00
|
|
|
testCompile group: 'org.ini4j', name: 'ini4j', version:"${ini4jVersion}"
|
2016-11-18 10:21:39 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTest {
|
|
|
|
cluster {
|
|
|
|
//setting 'useNativeProcess', 'true'
|
|
|
|
distribution = 'zip'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bundlePlugin {
|
2017-01-17 09:45:00 -05:00
|
|
|
if (project.cppLocalDists) {
|
2017-01-19 11:14:08 -05:00
|
|
|
def localCppBundles = fileTree(dir: cppLocalDists).matching { include "ml-cpp-${project.version}-*.zip" }
|
|
|
|
for (outputFile in localCppBundles) {
|
|
|
|
from(zipTree(outputFile)) {
|
|
|
|
duplicatesStrategy 'exclude'
|
|
|
|
}
|
|
|
|
}
|
2016-12-01 07:16:06 -05:00
|
|
|
} else {
|
2017-01-19 10:22:55 -05:00
|
|
|
for (outputFile in configurations.nativeBundle) {
|
2017-01-17 09:45:00 -05:00
|
|
|
from(zipTree(outputFile)) {
|
|
|
|
duplicatesStrategy 'exclude'
|
|
|
|
}
|
2016-12-01 07:16:06 -05:00
|
|
|
}
|
|
|
|
}
|
2016-11-18 10:21:39 -05:00
|
|
|
}
|