JFB 7: Build jar from homework 6.5 using Maven and Gradle (#8) #4
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: Build with Gradle and run | |
on: [push, workflow_dispatch] | |
jobs: | |
build_with_gradle: | |
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' | |
- name: Build Project with Gradle | |
run: gradle clean build | |
- name: Run Application | |
run: java -jar build/libs/java-trainee-edu-1.0-SNAPSHOT.jar |