Skip to content

For some reason, actions/setup-java did not work with Oracle JDK :-( #97

For some reason, actions/setup-java did not work with Oracle JDK :-(

For some reason, actions/setup-java did not work with Oracle JDK :-( #97

Workflow file for this run

name: Build on Push/PR
on:
pull_request:
push:
workflow_dispatch:
env:
JAVA_VERSION: 17
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "${{env.JAVA_VERSION}}"
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: gradle remapJar
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/