Use latest Java toolchain and simplify Javadoc generation now that th… #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build project | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project sources | |
uses: actions/checkout@v4 | |
- name: Setup Java toolchains | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: | | |
8 | |
11 | |
17 | |
21 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Run Gradle build | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build --info --stacktrace | |
- name: Upload build artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: | | |
build/docs/ | |
build/libs/ | |
build/reports/ |