-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Spring Boot version to 3.3.5 (#57)
* Update Spring Boot version to 3.3.5 * optimize pre-commit * add org.gradle.parallel=true & org.gradle.caching=true * update s/{/\\{/g --------- Co-authored-by: DanielLiu1123 <[email protected]> Co-authored-by: Freeman Liu <[email protected]>
- Loading branch information
1 parent
06ca7de
commit 2b5a619
Showing
4 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# format code | ||
./gradlew spotlessApply > /dev/null | ||
|
||
# generate configuration properties docs | ||
./gradlew classes > /dev/null | ||
./gradlew generateConfigurationPropertiesDocs > /dev/null | ||
./gradlew classes generateConfigurationPropertiesDocs > /dev/null | ||
|
||
# escape {} in md | ||
sed -i '' 's/{/\\{/g' build/configuration-properties.md | ||
|
||
perl -pi -e 's/{/\\{/g' build/configuration-properties.md | ||
# add sidebar_position | ||
sed -i '' '1i\ | ||
---\ | ||
sidebar_position: 40\ | ||
---\ | ||
\ | ||
' build/configuration-properties.md | ||
perl -pi -e 'print "---\nsidebar_position: 40\n---\n\n" if $. == 1' build/configuration-properties.md | ||
# remove generated time | ||
perl -pi -e 's/This is a generated file.*\n//g' build/configuration-properties.md | ||
|
||
cp -f build/configuration-properties.md website/docs/40-configuration-properties.md | ||
|
||
# grpc-extensions/grpc-metrics/src/test/java/grpcstarter/extensions/metrics/Deps.java sync with springBootVersion in gradle.properties | ||
springBootVersion=$(grep '^springBootVersion=' gradle.properties | cut -d'=' -f2) | ||
perl -pi -e "s/SPRING_BOOT_VERSION = \".*\"/SPRING_BOOT_VERSION = \"${springBootVersion}\"/" grpc-extensions/grpc-metrics/src/test/java/grpcstarter/extensions/metrics/Deps.java | ||
|
||
git add -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters