2018-01-22 10:55:03 -05:00
|
|
|
evaluationDependsOn(':x-pack-elasticsearch:plugin:core')
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
|
|
name 'x-pack-ml'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - Machine Learning'
|
|
|
|
classname 'org.elasticsearch.xpack.ml.MachineLearning'
|
|
|
|
hasNativeController true
|
|
|
|
requiresKeystore true
|
|
|
|
extendedPlugins = ['x-pack-core']
|
|
|
|
licenseFile project(':x-pack-elasticsearch').file('LICENSE.txt')
|
|
|
|
noticeFile project(':x-pack-elasticsearch').file('NOTICE.txt')
|
|
|
|
}
|
2017-12-08 11:41:32 -05:00
|
|
|
archivesBaseName = 'x-pack-ml'
|
|
|
|
|
|
|
|
licenseHeaders.enabled = false
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
integTest.enabled = false
|
|
|
|
|
2017-12-08 11:41:32 -05:00
|
|
|
configurations {
|
2017-12-08 16:42:50 -05:00
|
|
|
nativeBundle {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
if (findProject(':machine-learning-cpp') != null) {
|
|
|
|
substitute module("org.elasticsearch.ml:ml-cpp") with project(":machine-learning-cpp")
|
|
|
|
} else {
|
2018-01-20 00:30:17 -05:00
|
|
|
substitute module("org.elasticsearch.ml:ml-cpp") with project("${project.parent.path}:ml-cpp-snapshot")
|
2017-12-08 16:42:50 -05:00
|
|
|
}
|
|
|
|
}
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
bundlePlugin {
|
|
|
|
dependsOn configurations.nativeBundle
|
|
|
|
from {
|
|
|
|
project.zipTree(configurations.nativeBundle.singleFile)
|
|
|
|
}
|
|
|
|
|
|
|
|
// We don't ship the individual nativeBundle licenses - instead
|
|
|
|
// they get combined into the top level NOTICES file we ship
|
|
|
|
exclude 'platform/licenses/**'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
|
2017-12-08 11:41:32 -05:00
|
|
|
dependencies {
|
|
|
|
provided "org.elasticsearch:elasticsearch:${version}"
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
provided "org.elasticsearch.plugin:x-pack-core:${version}"
|
|
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin:core', configuration: 'testArtifacts')
|
|
|
|
// This should not be here
|
|
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin:security', configuration: 'testArtifacts')
|
2017-12-08 11:41:32 -05:00
|
|
|
|
|
|
|
// ml deps
|
|
|
|
compile 'net.sf.supercsv:super-csv:2.4.0'
|
|
|
|
nativeBundle "org.elasticsearch.ml:ml-cpp:${project.version}@zip"
|
|
|
|
testCompile 'org.ini4j:ini4j:0.5.2'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
2017-12-08 16:42:50 -05:00
|
|
|
ignoreSha 'x-pack-core'
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
run {
|
|
|
|
plugin ':x-pack-elasticsearch:plugin:core'
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|