Skip to content

Commit acf827a

Browse files
author
Vincent Potucek
committed
[openrewrite] Apply GradleBestPractices
1 parent 68035f7 commit acf827a

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

gradle/wrapper/gradle-wrapper.jar

176 Bytes
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
77
zipStorePath=wrapper/dists
8+
distributionSha256Sum=df67a32e86e3276d011735facb1535f64d0d88df84fa87521e90becc2d735444

gradlew

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117+
<% if ( classpath ) {%>\
118+
CLASSPATH="\\\"\\\""
119+
<% } %>\
117120

118121

119122
# Determine the Java command to use to start the JVM.
@@ -171,6 +174,9 @@ fi
171174
# For Cygwin or MSYS, switch paths to Windows format before running java
172175
if "$cygwin" || "$msys" ; then
173176
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
177+
<% if ( classpath ) {%>\
178+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
179+
<% } %>\
174180

175181
JAVACMD=$( cygpath --unix "$JAVACMD" )
176182

@@ -210,6 +216,10 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
210216

211217
set -- \
212218
"-Dorg.gradle.appname=$APP_BASE_NAME" \
219+
\
220+
<% if ( classpath ) {%>\
221+
-classpath "$CLASSPATH" \
222+
<% } %>\
213223
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
214224
"$@"
215225

gradlew.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73+
<% if ( classpath ) {%>\
74+
set CLASSPATH=
75+
<% } %>\
7376

7477

7578
@rem Execute Gradle
76-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
79+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%"<% if ( classpath ) {%> -classpath "%CLASSPATH%"<% } %> -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7780

7881
:end
7982
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)