Skip to content

Commit

Permalink
Update Spring Boot version to 3.3.5 (#61)
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

* add clean

---------

Co-authored-by: DanielLiu1123 <62151295+DanielLiu1123@users.noreply.github.com>
Co-authored-by: Freeman Liu <llw599502537@gmail.com>
  • Loading branch information
3 people authored Oct 26, 2024
1 parent 71b74e3 commit b7400d4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
17 changes: 7 additions & 10 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/usr/bin/env bash

set -e

./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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
cache: 'gradle'

- name: Build
run: ./gradlew build --no-daemon
run: ./gradlew clean build --no-daemon --stacktrace
2 changes: 1 addition & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
cache: 'gradle'

- name: Release Snapshot
run: OSSRH_USER=${{ secrets.OSSRH_USER }} OSSRH_PASSWORD=${{ secrets.OSSRH_PASSWORD }} ./gradlew publish
run: OSSRH_USER=${{ secrets.OSSRH_USER }} OSSRH_PASSWORD=${{ secrets.OSSRH_PASSWORD }} ./gradlew clean publish --no-daemon --stacktrace
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fi
- name: Build
run: ./gradlew build --no-daemon
run: ./gradlew clean build --no-daemon --stacktrace

- name: Decrypt secring.gpg
run: openssl enc -aes-256-cbc -d -pbkdf2 -in secring.gpg.bin -out secring.gpg -pass pass:${{ secrets.privateKeyPassword }}
Expand Down
8 changes: 5 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
group=io.github.danielliu1123
version=3.3.4-SNAPSHOT
version=3.3.5-SNAPSHOT

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 @@ -18,11 +18,13 @@ springConfigurationPropertyDocumenterVersion=0.7.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

# /~https://github.com/graalvm/native-build-tools
graalvmBuildToolsVersion=0.10.3

org.gradle.jvmargs=-Xmx2g
org.gradle.parallel=true
org.gradle.caching=true
1 change: 0 additions & 1 deletion website/docs/40-configuration-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ This page was generated by [spring-configuration-property-documenter](https://gi
|---|----|-----------|-------------|-----------|
| enabled| java.lang.Boolean| Whether to enable refresh exchange clients, default \{@code false}. &lt;p&gt; This feature needs \{@code spring-cloud-context} dependency in the classpath. &lt;p color&#x3D;&quot;orange&quot;&gt; NOTE: This feature is not supported by native image. @see &lt;a href&#x3D;&quot;/~https://github.com/spring-cloud/spring-cloud-release/wiki/AOT-transformations-and-native-image-support#refresh-scope&quot;&gt;Refresh Scope&lt;/a&gt;| false| |

This is a generated file, generated at: **2024-09-26T01:16:48.554446**

0 comments on commit b7400d4

Please sign in to comment.