Skip to content

Add distribution to setup-java #40

Add distribution to setup-java

Add distribution to setup-java #40

Workflow file for this run

name: Java CI
on: [push]
jobs:
build-latest-snapshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -P jitpack-latest -B package -DskipTests=true --file pom.xml
build-stable:
if: contains(github.ref, 'master') || (contains(github.ref, 'release') ) || (contains(github.ref, 'support') )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Build with Maven
run: mvn -B package -DskipTests=true --file pom.xml