Skip to content

Commit 209d508

Browse files
committed
build: Upgraded to gradle 8.4
1 parent 0bf4afa commit 209d508

File tree

11 files changed

+172
-166
lines changed

11 files changed

+172
-166
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
branch: ${{ github.event.inputs.branch }}
2020
version: ${{ github.event.inputs.version }}
21+
java-version: 21
2122
secrets:
2223
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
2324
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.1
1+
0.4.0-SNAPSHOT

build.gradle

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ config {
66
tags = ['redis', 'enterprise', 'admin']
77

88
links {
9-
website = "https://github.com/redis-developer/${project.rootProject.name}"
10-
issueTracker = "https://github.com/redis-developer/${project.rootProject.name}/issues"
11-
scm = "https://github.com/redis-developer/${project.rootProject.name}.git"
9+
website = "https://github.com/redis-field-engineering/${project.rootProject.name}"
10+
issueTracker = "https://github.com/redis-field-engineering/${project.rootProject.name}/issues"
11+
scm = "https://github.com/redis-field-engineering/${project.rootProject.name}.git"
1212
}
1313

1414
scm {
15-
url = "https://github.com/redis-developer/${project.rootProject.name}"
16-
connection = "scm:git:https://github.com/redis-developer/${project.rootProject.name}.git"
17-
developerConnection = "scm:git:git@github.com:redis-developer/${project.rootProject.name}.git"
15+
url = "https://github.com/redis-field-engineering/${project.rootProject.name}"
16+
connection = "scm:git:https://github.com/redis-field-engineering/${project.rootProject.name}.git"
17+
developerConnection = "scm:git:git@github.com:redis-field-engineering/${project.rootProject.name}.git"
1818
}
1919

2020
specification {
@@ -40,18 +40,10 @@ config {
4040
enabled = false
4141
}
4242
}
43-
sourceHtml {
44-
enabled = false
45-
}
4643
}
4744

4845
licensing {
4946
enabled = false
50-
licenses {
51-
license {
52-
id = 'Apache-2.0'
53-
}
54-
}
5547
}
5648

5749
coverage {
@@ -97,28 +89,7 @@ subprojects {
9789
useJUnitPlatform()
9890
}
9991

100-
bootJar {
101-
enabled = false
102-
}
103-
104-
jar {
105-
enabled = true
106-
archiveClassifier = ''
107-
}
108-
10992
compileJava {
11093
options.release = 8
11194
}
112-
113-
configurations {
114-
all*.exclude module: 'spring-boot-starter-logging'
115-
}
116-
117-
configurations.all {
118-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
119-
if (details.requested.name == 'lettuce-core' ) {
120-
details.useVersion lettuceVersion
121-
}
122-
}
123-
}
124-
}
95+
}

gradle.properties

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
group = com.redis
2-
sourceCompatibility = 1.8
3-
targetCompatibility = 1.8
2+
sourceCompatibility = 8
3+
targetCompatibility = 8
4+
testSourceCompatibility = 11
5+
testTargetCompatibility = 11
46
reproducibleBuild = true
57

6-
bootPluginVersion = 2.7.10
7-
kordampBuildVersion = 2.8.0
8-
kordampPluginVersion = 0.48.0
8+
kordampBuildVersion = 3.3.0
9+
kordampPluginVersion = 0.53.0
910

1011
awaitilityVersion = 4.2.0
11-
commonsIOVersion = 2.11.0
12-
jacocoVersion = 0.8.9
13-
lettuceVersion = 6.2.3.RELEASE
14-
testcontainersRedisVersion = 1.6.3
12+
commonsIOVersion = 2.14.0
13+
httpclientVersion = 5.2.1
14+
jacksonVersion = 2.15.3
15+
jacocoVersion = 0.8.10
16+
junitVersion = 5.10.1
17+
junitPlatformVersion = 1.10.0
18+
lettucemodVersion = 3.7.3
19+
slf4jVersion = 1.7.36
20+
testcontainersVersion = 1.19.2
21+
testcontainersRedisVersion = 1.7.0
1522

1623
org.gradle.daemon = true
17-
org.gradle.caching = true
24+
org.gradle.caching = false
1825
systemProp.file.encoding = utf-8
1926
org.gradle.jvmargs = -Dfile.encoding=UTF-8

gradle/wrapper/gradle-wrapper.jar

2.1 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,11 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9088

9189
# Use the maximum available, or set MAX_FD != -1 to use that value.
9290
MAX_FD=maximum
@@ -133,22 +131,29 @@ location of your Java installation."
133131
fi
134132
else
135133
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137137
138138
Please set the JAVA_HOME variable in your environment to match the
139139
location of your Java installation."
140+
fi
140141
fi
141142

142143
# Increase the maximum file descriptors if we can.
143144
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
147+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148+
# shellcheck disable=SC2039,SC3045
146149
MAX_FD=$( ulimit -H -n ) ||
147150
warn "Could not query maximum file descriptor limit"
148151
esac
149152
case $MAX_FD in #(
150153
'' | soft) :;; #(
151154
*)
155+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156+
# shellcheck disable=SC2039,SC3045
152157
ulimit -n "$MAX_FD" ||
153158
warn "Could not set maximum file descriptor limit to $MAX_FD"
154159
esac
@@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then
193198
done
194199
fi
195200

196-
# Collect all arguments for the java command;
197-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198-
# shell script including quotes and variable substitutions, so put them in
199-
# double quotes to make sure that they get re-expanded; and
200-
# * put everything else in single quotes, so that it's not re-expanded.
201+
202+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204+
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
201210

202211
set -- \
203212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
2828
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

settings.gradle

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ buildscript {
88
classpath "org.kordamp.gradle:java-project-gradle-plugin:$kordampPluginVersion"
99
classpath "org.kordamp.gradle:jacoco-gradle-plugin:$kordampPluginVersion"
1010
classpath "org.kordamp.gradle:kordamp-parentbuild:$kordampBuildVersion"
11-
classpath "org.springframework.boot:spring-boot-gradle-plugin:$bootPluginVersion"
1211
}
1312
}
1413

@@ -26,14 +25,25 @@ projects {
2625
path(':') {
2726
id 'org.kordamp.gradle.java-project'
2827
}
29-
dirs(['subprojects']) {
28+
dir('subprojects') {
3029
id 'java-library'
31-
id 'org.springframework.boot'
32-
id 'io.spring.dependency-management'
3330
}
3431
}
3532
}
3633

3734
enforce {
38-
enabled = false
35+
rule(enforcer.rules.ForceDependencies) { r ->
36+
r.dependencies.addAll "org.slf4j:slf4j-api:$slf4jVersion",
37+
"com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion",
38+
"com.fasterxml.jackson.core:jackson-bom:$jacksonVersion",
39+
"com.fasterxml.jackson.core:jackson-core:$jacksonVersion",
40+
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
41+
"commons-io:commons-io:$commonsIOVersion",
42+
"org.apache.httpcomponents.client5:httpclient5:$httpclientVersion",
43+
"org.junit:junit-bom:$junitVersion",
44+
"org.junit.platform:junit-platform-engine:$junitPlatformVersion",
45+
"org.junit.platform:junit-platform-commons:$junitPlatformVersion",
46+
"org.junit.platform:junit-platform-launcher:$junitPlatformVersion",
47+
"org.testcontainers:testcontainers:$testcontainersVersion"
48+
}
3949
}

subprojects/redis-enterprise-admin/redis-enterprise-admin.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
dependencies {
22
implementation group: 'commons-io', name: 'commons-io', version: commonsIOVersion
3-
implementation 'com.fasterxml.jackson.core:jackson-databind'
4-
implementation 'org.apache.httpcomponents.client5:httpclient5'
3+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
4+
implementation group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: httpclientVersion
55
implementation group: 'org.awaitility', name: 'awaitility', version: awaitilityVersion
6-
testImplementation 'org.slf4j:slf4j-api'
7-
testImplementation 'org.slf4j:slf4j-simple'
8-
testImplementation group: 'com.redis.testcontainers', name: 'testcontainers-redis-junit', version: testcontainersRedisVersion
6+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitVersion
7+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitVersion
8+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitVersion
9+
testImplementation group: 'org.junit.platform', name: 'junit-platform-launcher', version: junitPlatformVersion
10+
testImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: testcontainersVersion
11+
testImplementation(group: 'com.redis', name: 'testcontainers-redis', version: testcontainersRedisVersion) {
12+
exclude group: 'com.redis', module: 'redis-enterprise-admin'
13+
}
14+
testImplementation group: 'com.redis', name: 'lettucemod', version: lettucemodVersion
915
}
1016

1117
eclipse {

0 commit comments

Comments
 (0)