@@ -16,11 +16,32 @@ version = "${plugin_version}"
16
16
apply plugin : ' java'
17
17
apply plugin : ' idea'
18
18
apply plugin : ' elasticsearch.esplugin'
19
+ apply plugin : ' elasticsearch.yaml-rest-test'
19
20
20
21
// license of this project
21
22
licenseFile = rootProject. file(' LICENSE' )
22
23
noticeFile = rootProject. file(' README.md' )
23
24
25
+ publishing {
26
+ publications {
27
+ // add license information to generated poms
28
+ all {
29
+ pom. withXml { XmlProvider xml ->
30
+ Node node = xml. asNode()
31
+
32
+ Node license = node. appendNode(' licenses' ). appendNode(' license' )
33
+ license. appendNode(' name' , ' The MIT License (MIT)' )
34
+ license. appendNode(' url' , ' ./LICENSE' )
35
+ license. appendNode(' distribution' , ' repo' )
36
+
37
+ Node developer = node. appendNode(' developers' ). appendNode(' developer' )
38
+ developer. appendNode(' name' , ' Opendatasoft' )
39
+ developer. appendNode(' url' , ' https://www.opendatasoft.com/' )
40
+ }
41
+ }
42
+ }
43
+ }
44
+
24
45
esplugin {
25
46
name ' geopoint-clustering-aggregation'
26
47
description ' Aggregate clusters from geohash grid aggregation'
@@ -31,9 +52,12 @@ esplugin {
31
52
32
53
dependencies {
33
54
compile " org.elasticsearch:elasticsearch:${ es_version} "
34
- testCompile " org.elasticsearch.test:framework:${ es_version} "
55
+ // required for ESClientYamlSuiteTestCase; fixes "RestApiYamlIT > initializationError"
56
+ yamlRestTestImplementation " org.apache.logging.log4j:log4j-core:${ versions.log4j} "
35
57
}
36
58
59
+ test. enabled = false
60
+
37
61
// Skip license headers check
38
62
licenseHeaders. enabled = false
39
63
@@ -43,3 +67,13 @@ checkstyleTest.enabled = true
43
67
dependencyLicenses. enabled = true
44
68
45
69
thirdPartyAudit. enabled = true
70
+
71
+ // fixes "Could not find org.elasticsearch.test:logger-usage:7.10.2"
72
+ // see https://github.com/elastic/elasticsearch/issues/65247
73
+ loggerUsageCheck. enabled = false
74
+
75
+ // Make sure the ES distribution used for rest tests is the open source variant
76
+ // Otherwise weirds errors occur (like the geo_shape type is not handled) due to licensing issues
77
+ testClusters. all {
78
+ testDistribution = ' oss'
79
+ }
0 commit comments