Skip to content

Commit 12d08e2

Browse files
Upgrade to Gradle 8.2.1
Closes gh-2388
1 parent e89364c commit 12d08e2

File tree

19 files changed

+33
-24
lines changed

19 files changed

+33
-24
lines changed

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373
implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
7474
implementation 'com.github.spullara.mustache.java:compiler:0.9.10'
7575
implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.34'
76-
implementation 'io.spring.nohttp:nohttp-gradle:0.0.9'
76+
implementation 'io.spring.nohttp:nohttp-gradle:0.0.11'
7777
implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
7878
implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
7979
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'

buildSrc/src/main/groovy/io/spring/gradle/convention/DocsPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class DocsPlugin implements Plugin<Project> {
2525
group = 'Distribution'
2626
archiveBaseName = project.rootProject.name
2727
archiveClassifier = 'docs'
28-
description = "Builds -${classifier} archive containing all " +
28+
description = "Builds -${archiveClassifier} archive containing all " +
2929
"Docs for deployment at docs.spring.io"
3030

3131
from(project.tasks.api.outputs) {

buildSrc/src/main/groovy/io/spring/gradle/convention/SpringModulePlugin.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package io.spring.gradle.convention;
1818

1919
import org.gradle.api.Project
2020
import org.gradle.api.plugins.JavaLibraryPlugin;
21-
import org.gradle.api.plugins.MavenPlugin;
2221
import org.gradle.api.plugins.PluginManager
2322
import org.springframework.gradle.maven.SpringMavenPlugin;
2423

buildSrc/src/main/groovy/io/spring/gradle/convention/SpringSampleWarPlugin.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class SpringSampleWarPlugin extends SpringSamplePlugin {
3838
project.gretty {
3939
servletContainer = 'tomcat10'
4040
contextPath = '/'
41-
fileLogEnabled = false
4241
}
4342

4443
Task prepareAppServerForIntegrationTests = project.tasks.create('prepareAppServerForIntegrationTests') {

buildSrc/src/main/groovy/io/spring/gradle/convention/TestsConfigurationPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class TestsConfigurationPlugin implements Plugin<Project> {
4444
}
4545

4646
project.tasks.create('testJar', Jar) {
47-
classifier = 'test'
47+
archiveClassifier = 'test'
4848
from project.sourceSets.test.output
4949
}
5050

buildSrc/src/test/resources/samples/showcase/samples/sgbcs-sample-war/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "org.gretty" version "4.0.0"
2+
id "org.gretty" version "4.1.0"
33
id "io.spring.convention.spring-sample-war"
44
}
55

gradle/wrapper/gradle-wrapper.jar

2.56 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 16 additions & 8 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,10 @@ 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+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
9087

9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
@@ -133,22 +130,29 @@ location of your Java installation."
133130
fi
134131
else
135132
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.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137136
138137
Please set the JAVA_HOME variable in your environment to match the
139138
location of your Java installation."
139+
fi
140140
fi
141141

142142
# Increase the maximum file descriptors if we can.
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -193,6 +197,10 @@ if "$cygwin" || "$msys" ; then
193197
done
194198
fi
195199

200+
201+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203+
196204
# Collect all arguments for the java command;
197205
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198206
# shell script including quotes and variable substitutions, so put them in

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

0 commit comments

Comments
 (0)