Skip to content

Commit c8a4249

Browse files
author
Bapt Abl
committed
[7.10] Upgrade gradle build
1 parent a492043 commit c8a4249

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

build.gradle

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,32 @@ version = "${plugin_version}"
1616
apply plugin: 'java'
1717
apply plugin: 'idea'
1818
apply plugin: 'elasticsearch.esplugin'
19+
apply plugin: 'elasticsearch.yaml-rest-test'
1920

2021
// license of this project
2122
licenseFile = rootProject.file('LICENSE')
2223
noticeFile = rootProject.file('README.md')
2324

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+
2445
esplugin {
2546
name 'geopoint-clustering-aggregation'
2647
description 'Aggregate clusters from geohash grid aggregation'
@@ -31,9 +52,12 @@ esplugin {
3152

3253
dependencies {
3354
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}"
3557
}
3658

59+
test.enabled = false
60+
3761
// Skip license headers check
3862
licenseHeaders.enabled = false
3963

@@ -43,3 +67,13 @@ checkstyleTest.enabled = true
4367
dependencyLicenses.enabled = true
4468

4569
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+
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
es_version = 7.7.0
2-
plugin_version = 7.7.0.0
1+
es_version = 7.10.2
2+
plugin_version = 7.10.2.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)