Skip to content

Stay on Java 17.

Stay on Java 17. #224

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up OpenJDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Spotless Check
run: ./gradlew spotlessCheck
- name: Test
run: ./gradlew test
- name: Build
run: ./gradlew generatePomFileForMavenJavaPublication build