2017-12-08 11:41:32 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
archivesBaseName = 'x-pack-ml'
|
|
|
|
|
|
|
|
// TODO: enable this once we have tests
|
|
|
|
test.enabled=false
|
|
|
|
licenseHeaders.enabled = false
|
|
|
|
|
|
|
|
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 {
|
|
|
|
substitute module("org.elasticsearch.ml:ml-cpp") with project("${project.path}:ml-cpp-snapshot")
|
|
|
|
}
|
|
|
|
}
|
2017-12-08 11:41:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
provided "org.elasticsearch:elasticsearch:${version}"
|
|
|
|
|
2017-12-08 16:42:50 -05:00
|
|
|
compile "org.elasticsearch:x-pack-core:${version}"
|
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
|
|
|
}
|
|
|
|
|
|
|
|
parent.bundlePlugin {
|
|
|
|
from jar
|
|
|
|
}
|