OpenSearch/elasticsearch/build.gradle
Colin Goodheart-Smithe b295d764a6 Creates a cpp gradle module to control the cpp build (elastic/elasticsearch#361)
Also uploads the pack zip to the nas instead of the elasticsearch plugin.

The cpp build can be disabled with `-Pxpack.cpp.build=false`

Original commit: elastic/x-pack-elasticsearch@1efb1b2e7e
2016-11-23 11:22:04 +00:00

52 lines
1.1 KiB
Groovy

import org.elasticsearch.gradle.precommit.PrecommitTasks
apply plugin: 'elasticsearch.esplugin'
esplugin {
name 'prelert'
description 'Prelert Plugin'
classname 'org.elasticsearch.xpack.prelert.PrelertPlugin'
}
version = "${elasticsearchVersion}"
thirdPartyAudit.enabled = false
dependencies {
compile group: 'net.sf.supercsv', name: 'super-csv', version:"${supercsvVersion}"
testCompile group: 'org.ini4j', name: 'ini4j', version:'0.5.2'
}
test {
exclude '**/*NoBootstrapTests.class'
}
task noBootstrapTest(type: Test,
dependsOn: test.dependsOn) {
classpath = project.test.classpath
testClassesDir = project.test.testClassesDir
include '**/*NoBootstrapTests.class'
}
check.dependsOn noBootstrapTest
noBootstrapTest.mustRunAfter test
integTest {
cluster {
//setting 'useNativeProcess', 'true'
distribution = 'zip'
}
}
integTest.mustRunAfter noBootstrapTest
bundlePlugin {
from("${rootDir}/cppdistribution") {
into '.'
// Don't copy Windows import libraries
exclude "**/*.lib"
// Don't copy the test support library
exclude "**/libPreTest.*"
includeEmptyDirs = false
}
}