From d1be3bd0be0486cf418cec35106f93f60bc151e9 Mon Sep 17 00:00:00 2001 From: zax71 Date: Sat, 18 Feb 2023 18:38:18 +0000 Subject: [PATCH] Update GitHub Actions to Gradle --- .github/workflows/build.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7ad5a8f..b108ecb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.3.0 #https://github.com/actions/checkout/releases - - name: Set up JDK 8 - uses: actions/setup-java@v3.9.0 #https://github.com/actions/setup-java/releases + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 with: - distribution: 'temurin' - java-version: 8 + java-version: 11 + distribution: 'adopt' - - name: Build with Maven - run: mvn -B package --file pom.xml + - name: Build with Gradle + run: gradlew build + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: Multiverse-Core-SNAPSHOT + path: build/libs/Multiverse-Core-4.3.2-SNAPSHOT.jar