build: add logstash-logback dependency and update logging configuration

Add Logstash Logback dependency to enable JSON logging and update the logback.xml configuration to include a JSON encoder. Also, update the CI workflow to cache Maven packages and improve build performance by disabling transfer progress.
This commit is contained in:
pnoker
2025-04-30 16:27:02 +08:00
parent 6b439b3419
commit 8a0cc1ba1c
3 changed files with 65 additions and 3 deletions
+10 -1
View File
@@ -16,6 +16,15 @@ jobs:
distribution: liberica
java-version: 21
cache: maven
cache-dependency-path: "**/pom.xml"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
- name: Extract Variables
id: variables
@@ -51,7 +60,7 @@ jobs:
echo "docker_registry_aliyun=registry.cn-beijing.aliyuncs.com/dc3" >> $GITHUB_OUTPUT
- name: Build with Maven
run: mvn -U -e -B clean package -DskipTests -P ${{ steps.variables.outputs.profile }}
run: mvn -U -e -B clean package -DskipTests -P ${{ steps.variables.outputs.profile }} --no-transfer-progress
- name: List Workspace
run: |