From d745cfb184623bfc3bb3c8cdf02d43d3b7b9576c Mon Sep 17 00:00:00 2001 From: Pasqual Koschmieder <40468651+derklaro@users.noreply.github.com> Date: Sun, 20 Jun 2021 04:11:12 +0200 Subject: [PATCH] Switch to GH-Workflow & use java 16 on jitpack builds (#1236) * Add github actions workflow * Add jitpack.yml to configure java version --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ jitpack.yml | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 jitpack.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..9b7ee9bb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: ProtocolLib full build lifecycle + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '16' + check-latest: true + + - name: Run maven build lifecycle + run: mvn --batch-mode clean test package + + - name: Upload plugin file + uses: actions/upload-artifact@v2 + with: + name: ProtocolLib + path: target/ProtocolLib.jar diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..fd424b1a --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +before_install: + - sdk install java 16.0.1-adpt