From 533063ee7cdb8a8e077b6f91a6fdb854c5e644e7 Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Fri, 2 Aug 2024 10:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0CI-CD=E4=BB=A5=E9=80=82?= =?UTF-8?q?=E9=85=8Dgradle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 16fa5bf..16f780f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,18 +13,16 @@ jobs: uses: https://ssl.lunadeer.cn:14446/actions/checkout@v3 with: fetch-depth: 0 - - name: "Set up Maven" - uses: https://ssl.lunadeer.cn:14446/actions/setup-maven@v4 - - name: "Set up JDK 17" + - name: "Set up JDK 21" uses: https://ssl.lunadeer.cn:14446/actions/setup-java@v3 with: - java-version: '17' + java-version: '21' distribution: 'zulu' - cache: maven - - name: "Build with Maven" - run: mvn -B package --file pom.xml + cache: gradle + - name: "Build with Gradle" + run: ./gradlew shadowJar - name: "Copy jar to staging" - run: mkdir staging && cp target/*.jar staging + run: mkdir staging && cp build/libs/*.jar staging/ - name: "Build & test" run: | echo "done!"