From 26393132f6040906cd4e950cb7e4a3a8f3937135 Mon Sep 17 00:00:00 2001 From: Greg Chabala Date: Thu, 14 Dec 2023 01:36:35 -0600 Subject: [PATCH 1/2] Add initial GitHub Actions build for Maven --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ pom.xml | 37 ++++++++++++++++++++++++++++++------- 2 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..39cb1a7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: # all pull requests + workflow_dispatch: # allow triggering manually + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 'Check out repository' + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 'Set up Java 17' + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + cache: 'maven' + + - name: 'Build' + run: | + xvfb-run mvn -V --batch-mode verify jacoco:report + + - name: 'Store results' + uses: actions/upload-artifact@v3 + with: + name: target + path: target/ + diff --git a/pom.xml b/pom.xml index b4e6c64..60332a3 100644 --- a/pom.xml +++ b/pom.xml @@ -42,12 +42,6 @@ 4.13 test - - org.jacoco - jacoco-maven-plugin - 0.8.11 - maven-plugin - @@ -91,5 +85,34 @@ + + + org.jacoco + jacoco-maven-plugin + + + default-prepare-agent + + prepare-agent + + + + + - \ No newline at end of file + + + + org.jacoco + jacoco-maven-plugin + + + + report + + + + + + + From 89f2774b750023e9cd455f03da5b5615bfa483ea Mon Sep 17 00:00:00 2001 From: Greg Chabala Date: Thu, 14 Dec 2023 13:20:49 -0600 Subject: [PATCH 2/2] Configure basic manifest for JAR --- pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pom.xml b/pom.xml index 60332a3..1637c8d 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,10 @@ maven-compiler-plugin 3.11.0 + + maven-jar-plugin + 3.3.0 + org.jacoco jacoco-maven-plugin @@ -86,6 +90,18 @@ + + maven-jar-plugin + + + + true + urChatBasic.frontend.DriverGUI + lib/ + + + + org.jacoco jacoco-maven-plugin