Skip to content

feat(java): Publishing to central-sonatype. #2

feat(java): Publishing to central-sonatype.

feat(java): Publishing to central-sonatype. #2

Workflow file for this run

name: Java Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: clients/java
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x gradlew
- name: Run Gradle assemble
run: ./gradlew assemble
## This requires more setup. Specifically, we need the server to be up w/
## some dummy data.
# - name: Run tests
# run: ./gradlew test
- name: Upload build artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: |
build/reports/
build/test-results/
retention-days: 7