Skip to content

JFB 7: Build jar from homework 6.5 using Maven and Gradle (#8) #4

JFB 7: Build jar from homework 6.5 using Maven and Gradle (#8)

JFB 7: Build jar from homework 6.5 using Maven and Gradle (#8) #4

Workflow file for this run

name: Build with Maven and run
on: [push, workflow_dispatch]
jobs:
build_with_maven:
runs-on: ubuntu-latest
steps:
- name: Get Repo
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Build Project with Maven
run: mvn clean package
- name: Run Application
run: java -jar java-trainee-edu/target/java-trainee-edu-1.0-SNAPSHOT.jar