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 { if (project.cppEnabled) { from { zipTree(project(':cpp').buildZip.outputs.files.singleFile) } } else { from("${rootDir}/cppdistribution") { into '.' // Don't copy Windows import libraries exclude "**/*.lib" // Don't copy the test support library exclude "**/libPreTest.*" includeEmptyDirs = false } } } bundlePlugin.dependsOn(':cpp:buildZip')