mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-03 03:32:08 +08:00
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:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user