Switch to GH-Workflow & use java 16 on jitpack builds (#1236)

* Add github actions workflow
* Add jitpack.yml to configure java version
This commit is contained in:
Pasqual Koschmieder 2021-06-20 04:11:12 +02:00 committed by GitHub
parent 4be2bf38ff
commit d745cfb184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

26
.github/workflows/build.yml vendored Normal file
View File

@ -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

2
jitpack.yml Normal file
View File

@ -0,0 +1,2 @@
before_install:
- sdk install java 16.0.1-adpt