Skip to content

Migrate build infrastructure from Gradle to Maven #5

Migrate build infrastructure from Gradle to Maven

Migrate build infrastructure from Gradle to Maven #5

Workflow file for this run

name: Maven Build
on:
pull_request:
branches: [main, support/2.x.x]
workflow_dispatch:
jobs:
build-java-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw verify --no-transfer-progress
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: UnitTests
path: |
target/surefire-reports/**
- name: Upload a Build Artifact
uses: actions/upload-artifact@v7
with:
name: drop
path: |
target/*.jar
pom.xml
mvnw
mvnw.cmd
.mvn/**
scripts/**
build-java-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 8
distribution: 'temurin'
cache: maven
- name: Build with Java 8
run: ./mvnw compile --no-transfer-progress