[TF-239] Update java version to 19 and gradle to 8.1 #22
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: Gradle Package | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "**" | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: "19" | |
distribution: "adopt" | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Display bradle version | |
run: ./gradlew versionDisplay | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Gradle report | |
run: ./gradlew jacocoTestReport coveralls | |
- name: Publish to GitHub Packages | |
if: startsWith(github.ref, 'refs/tags/') | |
run: ./gradlew publish | |
env: | |
GITHUB_USERNAME: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |