2019-08-20 06:38:22 -04:00
|
|
|
evaluationDependsOn(xpackModule('core'))
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
|
|
|
|
esplugin {
|
2019-11-14 06:01:23 -05:00
|
|
|
name 'search-business-rules'
|
|
|
|
description 'A plugin for applying business rules to search result rankings'
|
|
|
|
classname 'org.elasticsearch.xpack.searchbusinessrules.SearchBusinessRules'
|
|
|
|
extendedPlugins = ['x-pack-core']
|
2019-08-20 06:38:22 -04:00
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-searchbusinessrules'
|
|
|
|
|
|
|
|
|
|
|
|
integTest.enabled = false
|
|
|
|
|
|
|
|
// Instead we create a separate task to run the
|
|
|
|
// tests based on ESIntegTestCase
|
|
|
|
task internalClusterTest(type: Test) {
|
2019-11-14 06:01:23 -05:00
|
|
|
description = 'Java fantasy integration tests'
|
|
|
|
mustRunAfter test
|
2019-08-20 06:38:22 -04:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
include '**/*IT.class'
|
2019-08-20 06:38:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
check.dependsOn internalClusterTest
|
|
|
|
|
|
|
|
dependencies {
|
2019-11-14 06:01:23 -05:00
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(":test:framework")
|
2019-08-20 06:38:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// copied from CCR
|
|
|
|
dependencyLicenses {
|
2019-11-14 06:01:23 -05:00
|
|
|
ignoreSha 'x-pack-core'
|
2019-08-20 06:38:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
//testingConventions.naming {
|
|
|
|
// IT {
|
|
|
|
// baseClass "org.elasticsearch.xpack.searchbusinessrules.PinnedQueryBuilderIT"
|
|
|
|
// }
|
|
|
|
//}
|