Skip to content

Bump some build dependencies to enable building with a newer JDK. #78

Bump some build dependencies to enable building with a newer JDK.

Bump some build dependencies to enable building with a newer JDK. #78

Workflow file for this run

name: Gradle
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew --continue verifyGoogleJavaFormat build connectedCheck
- name: Publish snapshot
if: github.event_name == 'push'
env:
OSSRH_DEPLOY_USERNAME: ${{ secrets.OSSRH_DEPLOY_USERNAME }}
OSSRH_DEPLOY_PASSWORD: ${{ secrets.OSSRH_DEPLOY_PASSWORD }}
run: ./publish-snapshot-on-commit.sh