Build script updates (#46)

Build using GHA
Drop Java 6 and 7 support
Bump to ASM 9
Update gradle
New versioning
This commit is contained in:
modmuss50 authored and GitHub committed 2021-02-05 18:04:04 +00:00
1 parent 536170a946
commit 6008d6f3cf
9 files changed
+178 -131

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [8-jdk, 11-jdk, 15-jdk]
runs-on: ubuntu-20.04
container:
image: openjdk:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build --stacktrace
+16
View File
@@ -0,0 +1,16 @@
name: Release
on: [workflow_dispatch] # Manual trigger
jobs:
build:
runs-on: ubuntu-20.04
container:
image: openjdk:15-jdk
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew checkVersion build publish --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}