Skip to content

Commit d745cfb

Browse files
authored
Switch to GH-Workflow & use java 16 on jitpack builds (#1236)
* Add github actions workflow * Add jitpack.yml to configure java version
1 parent 4be2bf3 commit d745cfb

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ProtocolLib full build lifecycle
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup java
13+
uses: actions/setup-java@v2
14+
with:
15+
distribution: 'adopt'
16+
java-version: '16'
17+
check-latest: true
18+
19+
- name: Run maven build lifecycle
20+
run: mvn --batch-mode clean test package
21+
22+
- name: Upload plugin file
23+
uses: actions/upload-artifact@v2
24+
with:
25+
name: ProtocolLib
26+
path: target/ProtocolLib.jar

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
before_install:
2+
- sdk install java 16.0.1-adpt

0 commit comments

Comments
 (0)