Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit 424cd72

Browse files
GEODE-8496: dependency updates (apache#5822)
* Bump spring-security from 5.4.1 to 5.4.2 * Bump archunit from 0.12.0 to 0.14.1 * Bump fastutil from 8.4.3 to 8.4.4 * Bump httpcore from 4.4.13 to 4.4.14 * Bump istack-commons from 3.0.11 to 4.0.0 * Bump lettuce from 5.3.5.RELEASE to 6.0.1.RELEASE * Bump dependencyUpdates from 0.28.0 to 0.36.0 * Bump nebula-lint from 16.4.0 to 16.15.9 * Bump dependency-management from 1.0.9.RELEASE to 1.0.10.RELEASE * Bump grgit from 4.0.1 to 4.1.0 * Bump sonarqube from "2.8" to "3.0" * Bump nebula.facet from 6.0.2 to 6.2.0 * Bump spotless from 3.28.0 to 5.8.2 * remove unused dependency jackson-module-scala_2.10 * update bump exclusions and readme
1 parent 76575ac commit 424cd72

File tree

12 files changed

+49
-75
lines changed

12 files changed

+49
-75
lines changed

boms/geode-all-bom/src/test/resources/expected-pom.xml

+13-19
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@
7373
<version>2.11.3</version>
7474
<scope>compile</scope>
7575
</dependency>
76-
<dependency>
77-
<groupId>com.fasterxml.jackson.module</groupId>
78-
<artifactId>jackson-module-scala_2.10</artifactId>
79-
<version>2.11.3</version>
80-
<scope>compile</scope>
81-
</dependency>
8276
<dependency>
8377
<groupId>com.github.davidmoten</groupId>
8478
<artifactId>geo</artifactId>
@@ -148,7 +142,7 @@
148142
<dependency>
149143
<groupId>com.sun.istack</groupId>
150144
<artifactId>istack-commons-runtime</artifactId>
151-
<version>3.0.11</version>
145+
<version>4.0.0</version>
152146
<scope>compile</scope>
153147
</dependency>
154148
<dependency>
@@ -166,7 +160,7 @@
166160
<dependency>
167161
<groupId>com.tngtech.archunit</groupId>
168162
<artifactId>archunit-junit4</artifactId>
169-
<version>0.12.0</version>
163+
<version>0.14.1</version>
170164
<scope>compile</scope>
171165
</dependency>
172166
<dependency>
@@ -262,7 +256,7 @@
262256
<dependency>
263257
<groupId>it.unimi.dsi</groupId>
264258
<artifactId>fastutil</artifactId>
265-
<version>8.4.3</version>
259+
<version>8.4.4</version>
266260
<scope>compile</scope>
267261
</dependency>
268262
<dependency>
@@ -406,7 +400,7 @@
406400
<dependency>
407401
<groupId>org.apache.httpcomponents</groupId>
408402
<artifactId>httpcore</artifactId>
409-
<version>4.4.13</version>
403+
<version>4.4.14</version>
410404
<scope>compile</scope>
411405
</dependency>
412406
<dependency>
@@ -550,7 +544,7 @@
550544
<dependency>
551545
<groupId>io.lettuce</groupId>
552546
<artifactId>lettuce-core</artifactId>
553-
<version>5.3.5.RELEASE</version>
547+
<version>6.0.1.RELEASE</version>
554548
<scope>compile</scope>
555549
</dependency>
556550
<dependency>
@@ -748,49 +742,49 @@
748742
<dependency>
749743
<groupId>org.springframework.security</groupId>
750744
<artifactId>spring-security-config</artifactId>
751-
<version>5.4.1</version>
745+
<version>5.4.2</version>
752746
<scope>compile</scope>
753747
</dependency>
754748
<dependency>
755749
<groupId>org.springframework.security</groupId>
756750
<artifactId>spring-security-core</artifactId>
757-
<version>5.4.1</version>
751+
<version>5.4.2</version>
758752
<scope>compile</scope>
759753
</dependency>
760754
<dependency>
761755
<groupId>org.springframework.security</groupId>
762756
<artifactId>spring-security-ldap</artifactId>
763-
<version>5.4.1</version>
757+
<version>5.4.2</version>
764758
<scope>compile</scope>
765759
</dependency>
766760
<dependency>
767761
<groupId>org.springframework.security</groupId>
768762
<artifactId>spring-security-test</artifactId>
769-
<version>5.4.1</version>
763+
<version>5.4.2</version>
770764
<scope>compile</scope>
771765
</dependency>
772766
<dependency>
773767
<groupId>org.springframework.security</groupId>
774768
<artifactId>spring-security-web</artifactId>
775-
<version>5.4.1</version>
769+
<version>5.4.2</version>
776770
<scope>compile</scope>
777771
</dependency>
778772
<dependency>
779773
<groupId>org.springframework.security</groupId>
780774
<artifactId>spring-security-oauth2-core</artifactId>
781-
<version>5.4.1</version>
775+
<version>5.4.2</version>
782776
<scope>compile</scope>
783777
</dependency>
784778
<dependency>
785779
<groupId>org.springframework.security</groupId>
786780
<artifactId>spring-security-oauth2-client</artifactId>
787-
<version>5.4.1</version>
781+
<version>5.4.2</version>
788782
<scope>compile</scope>
789783
</dependency>
790784
<dependency>
791785
<groupId>org.springframework.security</groupId>
792786
<artifactId>spring-security-oauth2-jose</artifactId>
793-
<version>5.4.1</version>
787+
<version>5.4.2</version>
794788
<scope>compile</scope>
795789
</dependency>
796790
<dependency>

build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717

1818
plugins {
1919
id "wrapper"
20-
id "nebula.facet" version "6.0.2" apply false
20+
id "nebula.facet" version "6.2.0" apply false
2121
id "base"
2222
id "idea"
2323
id "eclipse"
24-
id "com.diffplug.gradle.spotless" version "3.28.0" apply false
25-
id "com.github.ben-manes.versions" version "0.28.0" apply false
26-
id "nebula.lint" version "16.4.0" apply false
24+
id "com.diffplug.spotless" version "5.8.2" apply false
25+
id "com.github.ben-manes.versions" version "0.36.0" apply false
26+
id "nebula.lint" version "16.15.9" apply false
2727
id "com.palantir.docker" version "0.22.1" apply false
28-
id "io.spring.dependency-management" version "1.0.9.RELEASE" apply false
29-
id "org.ajoberstar.grgit" version "4.0.1" apply false
28+
id "io.spring.dependency-management" version "1.0.10.RELEASE" apply false
29+
id "org.ajoberstar.grgit" version "4.1.0" apply false
3030
id "org.nosphere.apache.rat" version "0.6.0" apply false
31-
id "org.sonarqube" version "2.8" apply false
31+
id "org.sonarqube" version "3.0" apply false
3232
id "me.champeau.gradle.japicmp" apply false // Version defined in buildSrc/build.gradle
3333
id 'me.champeau.gradle.jmh' version '0.5.2' apply false
3434
}

buildSrc/src/main/groovy/org/apache/geode/gradle/plugins/DependencyConstraints.groovy

+6-7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DependencyConstraints implements Plugin<Project> {
3737
deps.put("commons-io.version", "2.8.0")
3838
deps.put("commons-lang3.version", "3.11")
3939
deps.put("commons-validator.version", "1.7")
40-
deps.put("fastutil.version", "8.4.3")
40+
deps.put("fastutil.version", "8.4.4")
4141
deps.put("javax.transaction-api.version", "1.3")
4242
deps.put("jgroups.version", "3.6.14.Final")
4343
deps.put("log4j.version", "2.14.0")
@@ -89,7 +89,6 @@ class DependencyConstraints implements Plugin<Project> {
8989
api(group: 'com.carrotsearch.randomizedtesting', name: 'randomizedtesting-runner', version: '2.7.8')
9090
api(group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version: '2.9.8')
9191
api(group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.11.3')
92-
api(group: 'com.fasterxml.jackson.module', name: 'jackson-module-scala_2.10', version: '2.11.3')
9392
api(group: 'com.github.davidmoten', name: 'geo', version: '0.7.7')
9493
api(group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.0')
9594
api(group: 'com.github.stephenc.findbugs', name: 'findbugs-annotations', version: '1.3.9-1')
@@ -102,10 +101,10 @@ class DependencyConstraints implements Plugin<Project> {
102101
api(group: 'com.nimbusds', name:'nimbus-jose-jwt', version:'8.11')
103102
// Pinning transitive dependency from spring-security-oauth2 to clean up our licenses.
104103
api(group: 'com.nimbusds', name: 'oauth2-oidc-sdk', version: '8.9')
105-
api(group: 'com.sun.istack', name: 'istack-commons-runtime', version: '3.0.11')
104+
api(group: 'com.sun.istack', name: 'istack-commons-runtime', version: '4.0.0')
106105
api(group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2')
107106
api(group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.2')
108-
api(group: 'com.tngtech.archunit', name:'archunit-junit4', version: '0.12.0')
107+
api(group: 'com.tngtech.archunit', name:'archunit-junit4', version: '0.14.1')
109108
api(group: 'com.zaxxer', name: 'HikariCP', version: '3.4.5')
110109
api(group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4')
111110
api(group: 'commons-codec', name: 'commons-codec', version: '1.15')
@@ -146,7 +145,7 @@ class DependencyConstraints implements Plugin<Project> {
146145
api(group: 'org.apache.commons', name: 'commons-text', version: 1.9)
147146
api(group: 'org.apache.derby', name: 'derby', version: '10.14.2.0')
148147
api(group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13')
149-
api(group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.13')
148+
api(group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.14')
150149
api(group: 'org.apache.shiro', name: 'shiro-core', version: get('shiro.version'))
151150
api(group: 'org.assertj', name: 'assertj-core', version: '3.18.1')
152151
api(group: 'org.awaitility', name: 'awaitility', version: '4.0.3')
@@ -170,7 +169,7 @@ class DependencyConstraints implements Plugin<Project> {
170169
api(group: 'org.testcontainers', name: 'testcontainers', version: '1.14.3')
171170
api(group: 'pl.pragmatists', name: 'JUnitParams', version: '1.1.0')
172171
api(group: 'redis.clients', name: 'jedis', version: '3.3.0')
173-
api(group: 'io.lettuce', name: 'lettuce-core', version: '5.3.5.RELEASE')
172+
api(group: 'io.lettuce', name: 'lettuce-core', version: '6.0.1.RELEASE')
174173
api(group: 'xerces', name: 'xercesImpl', version: '2.12.0')
175174
}
176175
}
@@ -239,7 +238,7 @@ class DependencyConstraints implements Plugin<Project> {
239238
entry('selenium-support')
240239
}
241240

242-
dependencySet(group: 'org.springframework.security', version: '5.4.1') {
241+
dependencySet(group: 'org.springframework.security', version: '5.4.2') {
243242
entry('spring-security-config')
244243
entry('spring-security-core')
245244
entry('spring-security-ldap')

dev-tools/dependencies/README.md

+7-20
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,15 @@ Step 0: Create a JIRA ticket for this work.
99
Step 1: List bump commands for all dependencies for which maven offers a newer version:
1010

1111
cd geode
12-
dev-tools/dependencies/bump.sh -l <jira you will be committing this work under>
13-
14-
Step 2: Filter out certain dependencies that we cannot change, such as:
15-
- jgroups
16-
- classgraph
17-
- gradle-tooling-api
18-
- JUnitParams
19-
- docker-compose-rule
20-
- javax.servlet-api
21-
- protobuf
22-
- lucene
23-
- tomcat 6
24-
- archunit (13.0 and later get OOM on JDK8)
25-
26-
Step 3: In some cases, maven suggests new majors, beta releases, or just wrong releases.
12+
dev-tools/dependencies/bump.sh <jira you will be committing this work under> -l
13+
14+
Step 2: In some cases, maven suggests beta releases, which Geode should not use.
2715
Manually search for those dependencies on mavencentral to see if there is a better choice.
28-
Examples include:
29-
- commons-collections (versioning back in 2004 predated semver)
30-
- springfox-swagger (stay on 2.9, as 2.10 and later is completely re-architected)
31-
- selenium-api (these tests are very old, so stay on version pi)
16+
Special cases:
17+
- tomcat6 (do not upgrade)
18+
- tomcat (upgrade to latest patch only for each of 7, 8.5, and 9)
3219

33-
Step 4: Create a PR and start bumping dependencies. Push to the PR every few to run PR
20+
Step 3: Create a PR and start bumping dependencies. Push to the PR every few to run PR
3421
checks. Later, review the PR checks and try to narrow down which bump introduced problems
3522
and revert it. At the end, create separate PRs for each one that was problematic and ask
3623
for help from someone in the community who knows that area better.

dev-tools/dependencies/bump.sh

+6-10
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,21 @@ if ! [ -d dev-tools ] ; then
2222
exit 1
2323
fi
2424

25-
if [ "$1" = "-l" ] ; then
26-
if [ "$2" = "" ] ; then
27-
echo "Usage: $0 -l <jira>"
28-
exit 1
29-
fi
30-
./gradlew dependencyUpdates; find . | grep build/dependencyUpdates/report.txt | xargs cat \
31-
| grep ' -> ' | egrep -v '(Gradle|antlr|protobuf|lucene|JUnitParams|docker-compose-rule|javax.servlet-api|gradle-tooling-api|springfox|archunit)' \
32-
| sort -u | tr -d '][' | sed -e 's/ -> / /' -e 's#.*:#'"$0 $2"' #'
25+
if [ "$2" = "-l" ] ; then
26+
./gradlew dependencyUpdates -Drevision=release ; find . | grep build/dependencyUpdates/report.txt | xargs cat \
27+
| grep ' -> ' | egrep -v '(Gradle|antlr|protobuf|lucene|JUnitParams|docker-compose-rule|javax.servlet-api|gradle-tooling-api|springfox|derby|classgraph|selenium|jgroups|jmh| 6.0.37|commons-collections|jaxb|testcontainers.*1.15.0)' \
28+
| sort -u | tr -d '][' | sed -e 's/ -> / /' -e 's#.*:#'"$0 $1"' #'
3329
exit 0
3430
fi
3531

3632
if [ "$4" = "" ] ; then
3733
echo "Usage: $0 <jira> <library-name> <old-ver> <new-ver>"
38-
echo " or: $0 -l <jira>"
34+
echo " or: $0 <jira> -l"
3935
exit 1
4036
fi
4137

4238
if [ $(git diff | wc -l) -gt 0 ] ; then
43-
echo "Your workspace has uncommitted changes, please stash them."
39+
echo "Your workspace has uncommitted changes, please stash or commit them."
4440
exit 1
4541
fi
4642

geode-assembly/src/integrationTest/resources/assembly_content.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ lib/commons-lang3-3.11.jar
987987
lib/commons-logging-1.2.jar
988988
lib/commons-modeler-2.0.1.jar
989989
lib/commons-validator-1.7.jar
990-
lib/fastutil-8.4.3.jar
990+
lib/fastutil-8.4.4.jar
991991
lib/findbugs-annotations-1.3.9-1.jar
992992
lib/geo-0.7.7.jar
993993
lib/geode-common-0.0.0.jar
@@ -1015,8 +1015,8 @@ lib/geode-unsafe-0.0.0.jar
10151015
lib/geode-wan-0.0.0.jar
10161016
lib/gfsh-dependencies.jar
10171017
lib/httpclient-4.5.13.jar
1018-
lib/httpcore-4.4.13.jar
1019-
lib/istack-commons-runtime-3.0.11.jar
1018+
lib/httpcore-4.4.14.jar
1019+
lib/istack-commons-runtime-4.0.0.jar
10201020
lib/jackson-annotations-2.11.3.jar
10211021
lib/jackson-core-2.11.3.jar
10221022
lib/jackson-databind-2.11.3.jar

geode-assembly/src/integrationTest/resources/dependency_classpath.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ geode-membership-0.0.0.jar
2323
geode-http-service-0.0.0.jar
2424
geode-unsafe-0.0.0.jar
2525
httpclient-4.5.13.jar
26-
httpcore-4.4.13.jar
26+
httpcore-4.4.14.jar
2727
HikariCP-3.4.5.jar
2828
commons-lang3-3.11.jar
2929
jaxb-api-2.3.1.jar
@@ -32,7 +32,7 @@ log4j-api-2.14.0.jar
3232
spring-shell-1.2.0.RELEASE.jar
3333
rmiio-2.1.2.jar
3434
antlr-2.7.7.jar
35-
istack-commons-runtime-3.0.11.jar
35+
istack-commons-runtime-4.0.0.jar
3636
jaxb-impl-2.3.2.jar
3737
commons-validator-1.7.jar
3838
shiro-core-1.7.0.jar
@@ -45,7 +45,7 @@ commons-logging-1.2.jar
4545
classgraph-4.8.52.jar
4646
micrometer-core-1.6.1.jar
4747
swagger-annotations-1.6.2.jar
48-
fastutil-8.4.3.jar
48+
fastutil-8.4.4.jar
4949
javax.resource-api-1.7.1.jar
5050
jetty-webapp-9.4.35.v20201120.jar
5151
jetty-servlet-9.4.35.v20201120.jar

geode-assembly/src/main/dist/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ The EDL 1.0 License (http://www.eclipse.org/org/documents/edl-v10.php)
10241024

10251025
Apache Geode bundles the following file under the EDL 1.0 License:
10261026

1027-
- istack-commons-runtime v3.0.11
1027+
- istack-commons-runtime v4.0.0
10281028

10291029
Eclipse Distribution License - v 1.0
10301030

geode-docs/managing/logging/how_logging_works.html.md.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ limitations under the License.
2121
2222
<%=vars.product_name%> uses [Apache Log4j 2](http://logging.apache.org/log4j/2.x/) API and Core libraries as the basis for its logging system. Log4j 2 API is a popular and powerful front-end logging API used by all the <%=vars.product_name%> classes to generate log statements. Log4j 2 Core is a backend implementation for logging; you can route any of the front-end logging API libraries to log to this backend. <%=vars.product_name%> uses the Core backend to run three custom Log4j 2 Appenders: **GeodeConsole**, **GeodeLogWriter**, and **GeodeAlert**.
2323
24-
<%=vars.product_name%> has been tested with Log4j 2.12.
24+
<%=vars.product_name%> has been tested with Log4j 2.14.
2525
<%=vars.product_name%> requires the
26-
`log4j-api-2.11.0.jar` and `log4j-core-2.11.0.jar`
26+
`log4j-api-2.14.0.jar` and `log4j-core-2.14.0.jar`
2727
JAR files to be in the classpath.
2828
Both of these JARs are distributed in the `<path-to-product>/lib` directory and included in the appropriate `*-dependencies.jar` convenience libraries.
2929

geode-web-api/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ dependencies {
5151
exclude module: 'jackson-annotations'
5252
}
5353

54-
compileOnly('com.fasterxml.jackson.module:jackson-module-scala_2.10')
5554
compileOnly('io.swagger:swagger-annotations')
5655

5756
implementation('io.springfox:springfox-swagger2') {

geode-web-management/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ dependencies {
6868
exclude module: 'jackson-annotations'
6969
}
7070

71-
compileOnly('com.fasterxml.jackson.module:jackson-module-scala_2.10')
7271
compileOnly('io.swagger:swagger-annotations')
7372

7473
implementation('io.springfox:springfox-swagger2') {

gradle/spotless.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ logger.debug("Using partial md5 (${thisFileIntegerHash}) of file ${thisFile} as
2929
project.ext.set("spotless-file-hash", thisFileIntegerHash)
3030

3131

32-
apply plugin: "com.diffplug.gradle.spotless"
32+
apply plugin: "com.diffplug.spotless"
3333
spotless {
3434
lineEndings = 'unix'
3535
java {

0 commit comments

Comments
 (0)