-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
56 lines (47 loc) · 1.57 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${es_version}"
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://repo1.maven.org/maven2"
}
}
group = 'org.elasticsearch.plugin'
version = "${plugin_version}"
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
esplugin {
name 'geopoint-clustering-aggregation'
description 'Aggregate clusters from geohash grid aggregation'
classname 'com.opendatasoft.elasticsearch.plugin.GeoPointClusteringAggregationPlugin'
licenseFile = rootProject.file('LICENSE')
noticeFile = rootProject.file('README.md')
}
// exclude junit from implementation to resolve a version conflict (but not from tests)
configurations {
implementation {
exclude(group: 'junit', module: 'junit')
}
}
dependencies {
implementation "org.elasticsearch:elasticsearch:${es_version}"
yamlRestTestImplementation "org.elasticsearch.test:framework:${es_version}"
// required for ESClientYamlSuiteTestCase; fixes "RestApiYamlIT > initializationError"
yamlRestTestImplementation "org.apache.logging.log4j:log4j-core:2.17.1"
}
// Make sure the ES distribution used for rest tests is the "complete" variant
// Otherwise weirds errors occur (like the geo_shape type is not handled)
testClusters.configureEach {
testDistribution = 'DEFAULT'
// disable security to disable failing warnings
setting 'xpack.security.enabled', 'false'
}