Skip to content

Commit

Permalink
Update Gradle version to 8.11 (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: DanielLiu1123 <[email protected]>
  • Loading branch information
github-actions[bot] and DanielLiu1123 authored Nov 12, 2024
1 parent aa33c20 commit 0096b84
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 119 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
188 changes: 94 additions & 94 deletions gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
48 changes: 24 additions & 24 deletions website/docs/40-configuration-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,80 +139,80 @@ This page was generated by [spring-configuration-property-documenter](https://gi

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| cert-chain| org.springframework.core.io.Resource| | | |
| private-key| org.springframework.core.io.Resource| | | |
| private-key-password| java.lang.String| | | |
| cert-chain| org.springframework.core.io.Resource| @see TlsServerCredentials.Builder#getCertificateChain()| | |
| private-key| org.springframework.core.io.Resource| @see TlsServerCredentials.Builder#getPrivateKey()| | |
| private-key-password| java.lang.String| @see TlsServerCredentials.Builder#getPrivateKeyPassword()| | |
### grpc.server.tls.trust-manager
**Class:** `grpcstarter.server.GrpcServerProperties$Tls$TrustManager`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| root-certs| org.springframework.core.io.Resource| | | |
| root-certs| org.springframework.core.io.Resource| @see TlsServerCredentials.Builder#getRootCertificates()| | |
### grpc.server.health.datasource
**Class:** `grpcstarter.server.GrpcServerProperties$Health$DataSource`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| | | |
| service| java.lang.String| | | |
| timeout| java.lang.Integer| | | |
| validation-query| java.lang.String| | | |
| enabled| java.lang.Boolean| Whether to enable datasource health check, default true.| true| |
| service| java.lang.String| The service name that will be used for datasource health check, default value is &#x27;datasource&#x27;.| datasource| |
| timeout| java.lang.Integer| \{@link #validationQuery} timeout, unit seconds.| | |
| validation-query| java.lang.String| The SQL query that will be used to validate datasource connection, default value is &#x27;SELECT 1&#x27;.| SELECT 1| |
### grpc.server.health.redis
**Class:** `grpcstarter.server.GrpcServerProperties$Health$Redis`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| | | |
| service| java.lang.String| | | |
| enabled| java.lang.Boolean| Whether to enable redis health check, default true.| true| |
| service| java.lang.String| The service name that will be used for redis health check, default value is &#x27;redis&#x27;.| redis| |
### grpc.server
**Class:** `grpcstarter.server.GrpcServerProperties`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enable-empty-server| java.lang.Boolean| | | |
| enabled| java.lang.Boolean| | | |
| max-inbound-message-size| org.springframework.util.unit.DataSize| | | |
| max-inbound-metadata-size| org.springframework.util.unit.DataSize| | | |
| port| java.lang.Integer| | | |
| shutdown-timeout| java.lang.Long| | | |
| enable-empty-server| java.lang.Boolean| Whether to start a gRPC server when no service found, default true.| true| |
| enabled| java.lang.Boolean| Whether to enable gRPC server autoconfiguration, default true.| true| |
| max-inbound-message-size| org.springframework.util.unit.DataSize| The maximum message size allowed to be received on the server, default 4MB. @see GrpcUtil#DEFAULT_MAX_MESSAGE_SIZE| | |
| max-inbound-metadata-size| org.springframework.util.unit.DataSize| The maximum size of metadata allowed to be received, default 8KB. @see GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE| | |
| port| java.lang.Integer| gRPC server port, default 9090, 0 or negative numbers will use random port.| 9090| |
| shutdown-timeout| java.lang.Long| Graceful shutdown timeout, default 30s, if 0 will wait forever util all active calls finished.| 30000| |
### grpc.server.channelz
**Class:** `grpcstarter.server.GrpcServerProperties$Channelz`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| | | |
| max-page-size| java.lang.Integer| | | |
| enabled| java.lang.Boolean| Whether to register \{@link ChannelzService}, default false.| false| |
| max-page-size| java.lang.Integer| The maximum page size to return, default 100. @see AdminInterface| 100| |
### grpc.server.exception-handling
**Class:** `grpcstarter.server.GrpcServerProperties$ExceptionHandling`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| default-exception-advice-enabled| java.lang.Boolean| | | |
| enabled| java.lang.Boolean| | | |
| default-exception-advice-enabled| java.lang.Boolean| Whether to enable \{@link DefaultGrpcExceptionAdvice}, default true. &lt;p&gt; \{@link DefaultGrpcExceptionAdvice} will handle exceptions recognized by gRPC, including: &lt;/p&gt; &lt;ul&gt; &lt;li&gt;\{@link StatusRuntimeException}&lt;/li&gt; &lt;li&gt;\{@link StatusException}&lt;/li&gt; &lt;/ul&gt; &lt;p&gt; When enabled, you can directly throw \{@link StatusRuntimeException} or \{@link StatusException} in service implementation, and the exception will be handled by \{@link DefaultGrpcExceptionAdvice}. &lt;/p&gt; &lt;pre&gt;\{@code @GrpcService public class SimpleService extends SimpleServiceGrpc.SimpleServiceImplBase \{ @Override public void unaryRpc(SimpleRequest request, StreamObserver&lt;SimpleResponse&gt; responseObserver) \{ throw new StatusRuntimeException(Status.INVALID_ARGUMENT.withDescription(&quot;Invalid request&quot;)); } } }&lt;/pre&gt; @see DefaultGrpcExceptionAdvice @since 3.2.3| true| |
| enabled| java.lang.Boolean| Whether to enable exception handling, default true.| true| |
### grpc.server.health
**Class:** `grpcstarter.server.GrpcServerProperties$Health`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| | | |
| enabled| java.lang.Boolean| Whether to enable health check, default false.| true| |
### grpc.server.in-process
**Class:** `grpcstarter.server.GrpcServerProperties$InProcess`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| name| java.lang.String| | | |
| name| java.lang.String| In-process server name, if configured, will create an in-process server, usually for testing.| | |
### grpc.server.reflection
**Class:** `grpcstarter.server.GrpcServerProperties$Reflection`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| | | |
| enabled| java.lang.Boolean| Whether to register reflection service, default false.| false| |
### grpc.server.response
**Class:** `grpcstarter.server.GrpcServerProperties$Response`

|Key|Type|Description|Default value|Deprecation|
|---|----|-----------|-------------|-----------|
| max-description-length| java.lang.Integer| | | |
| max-description-length| java.lang.Integer| The maximum length of response description. &lt;p&gt; When the length of the description exceeds this value, it will be truncated. &lt;/p&gt; @since 3.2.3| 2048| |
### grpc.server.tls
**Class:** `grpcstarter.server.GrpcServerProperties$Tls`

Expand Down

0 comments on commit 0096b84

Please sign in to comment.