Skip to content

Commit

Permalink
Update Spring Boot version to 3.3.5 (#57)
Browse files Browse the repository at this point in the history
* 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
3 people authored Oct 26, 2024
1 parent 06ca7de commit 2b5a619
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
21 changes: 11 additions & 10 deletions .githooks/pre-commit
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
12 changes: 7 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
group=io.github.danielliu1123
version=3.3.4-SNAPSHOT
version=3.3.5-SNAPSHOT

# Spring related
# https://github.com/spring-projects/spring-boot
springBootVersion=3.3.4
springBootVersion=3.3.5
# https://docs.spring.io/spring-cloud-release/reference/index.html
# https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
#springCloudVersion=2023.0.3
Expand All @@ -19,8 +19,8 @@ springConfigurationPropertyDocumenterVersion=0.7.1
protobufGradlePluginVersion=0.9.4
# https://central.sonatype.com/artifact/io.grpc/grpc-protobuf/dependencies
grpcVersion=1.68.0
# https://central.sonatype.com/artifact/com.google.api/api-common
googleApiCommonVersion=2.36.0
# https://central.sonatype.com/artifact/com.google.api/api-common/dependencies
googleApiCommonVersion=2.40.0
# https://central.sonatype.com/artifact/io.grpc/grpc-protobuf/dependencies
protobufVersion=3.25.3
# https://central.sonatype.com/artifact/io.grpc/grpc-protobuf/dependencies
Expand All @@ -36,7 +36,7 @@ protovalidateVersion=0.2.1
# https://plugins.gradle.org/plugin/com.diffplug.gradle.spotless
spotlessVersion=6.25.0
# https://plugins.gradle.org/plugin/com.github.spotbugs
spotbugsVersion=6.0.22
spotbugsVersion=6.0.25
# https://github.com/spotbugs/spotbugs-gradle-plugin/blob/master/build.gradle.kts
spotbugsAnnotationsVersion=4.8.6

Expand All @@ -45,3 +45,5 @@ javaxValidationApiVersion=1.3.2
classpathReplacerVersion=2.1.2

org.gradle.jvmargs=-Xmx2g
org.gradle.parallel=true
org.gradle.caching=true
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ public final class Deps {

private Deps() {}

public static final String SPRING_BOOT_VERSION = "3.3.4";
public static final String SPRING_BOOT_VERSION = "3.3.5";
}
1 change: 0 additions & 1 deletion website/docs/40-configuration-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,3 @@ This page was generated by [spring-configuration-property-documenter](https://gi
| enabled| java.lang.Boolean| Whether to enable validation, default is \{@code true}.| true| |
| order| java.lang.Integer| Validating interceptor order, default is \{@code 0}.| 0| |

This is a generated file, generated at: **2024-09-24T23:41:18.927932**

0 comments on commit 2b5a619

Please sign in to comment.