更新CI-CD以适配gradle
This commit is contained in:
parent
86fe23421f
commit
533063ee7c
@ -13,18 +13,16 @@ jobs:
|
|||||||
uses: https://ssl.lunadeer.cn:14446/actions/checkout@v3
|
uses: https://ssl.lunadeer.cn:14446/actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: "Set up Maven"
|
- name: "Set up JDK 21"
|
||||||
uses: https://ssl.lunadeer.cn:14446/actions/setup-maven@v4
|
|
||||||
- name: "Set up JDK 17"
|
|
||||||
uses: https://ssl.lunadeer.cn:14446/actions/setup-java@v3
|
uses: https://ssl.lunadeer.cn:14446/actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
cache: maven
|
cache: gradle
|
||||||
- name: "Build with Maven"
|
- name: "Build with Gradle"
|
||||||
run: mvn -B package --file pom.xml
|
run: ./gradlew shadowJar
|
||||||
- name: "Copy jar to staging"
|
- name: "Copy jar to staging"
|
||||||
run: mkdir staging && cp target/*.jar staging
|
run: mkdir staging && cp build/libs/*.jar staging/
|
||||||
- name: "Build & test"
|
- name: "Build & test"
|
||||||
run: |
|
run: |
|
||||||
echo "done!"
|
echo "done!"
|
||||||
|
Reference in New Issue
Block a user