From 672a975dbff1416d981c873505c57e585d782a78 Mon Sep 17 00:00:00 2001 From: Michael Jacoby Date: Fri, 13 Dec 2024 08:11:43 +0100 Subject: [PATCH] update POMs and workflows --- .github/workflows/maven-build-pr.yml | 2 +- .github/workflows/maven-build.yml | 2 +- .github/workflows/sonar-test-pr.yml | 2 +- checks/pom.xml | 1 + core/pom.xml | 21 ++++++++++ maven-ci-settings.xml | 2 +- pom.xml | 61 +++++++++++++++------------- 7 files changed, 59 insertions(+), 32 deletions(-) diff --git a/.github/workflows/maven-build-pr.yml b/.github/workflows/maven-build-pr.yml index 9746ccb..56c8ae2 100644 --- a/.github/workflows/maven-build-pr.yml +++ b/.github/workflows/maven-build-pr.yml @@ -44,7 +44,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - mvn install sonar:sonar -Pcoverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Client \ + mvn install sonar:sonar -P coverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Client \ -Dsonar.organization=fraunhofer-iosb \ -Dsonar.coverage.jacoco.xmlReportPaths=target/jacoco/jacoco.xml \ --settings maven-ci-settings.xml -B diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5a454e1..2cee0e8 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -42,7 +42,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - mvn install sonar:sonar -Pcoverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Client --settings maven-ci-settings.xml -B + mvn install sonar:sonar -P coverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Client --settings maven-ci-settings.xml -B - name: Restore CVD Database from Cache uses: actions/cache/restore@v4 diff --git a/.github/workflows/sonar-test-pr.yml b/.github/workflows/sonar-test-pr.yml index d2a2dae..d5943ef 100644 --- a/.github/workflows/sonar-test-pr.yml +++ b/.github/workflows/sonar-test-pr.yml @@ -28,7 +28,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: > - mvn install sonar:sonar -Pcoverage + mvn install sonar:sonar -P coverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Client -Dsonar.pullrequest.key='${{ steps.fetch.outputs.pr-number }}' -Dsonar.pullrequest.branch='${{ github.event.workflow_run.head_branch }}' diff --git a/checks/pom.xml b/checks/pom.xml index c2b9a44..a867670 100644 --- a/checks/pom.xml +++ b/checks/pom.xml @@ -7,6 +7,7 @@ 1.0.0-SNAPSHOT ../pom.xml + de.fraunhofer.iosb.ilt.faaast.client checks checks Checkstyle Checks for the FA³ST Client. diff --git a/core/pom.xml b/core/pom.xml index 13a9471..3d7bc9d 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,6 +7,7 @@ 1.0.0-SNAPSHOT ../pom.xml + de.fraunhofer.iosb.ilt.faaast.client core core Main functionality of the FA³ST Client. @@ -46,4 +47,24 @@ ${aas4j.version} + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven.plugin.jar.version} + + + + test-jar + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + diff --git a/maven-ci-settings.xml b/maven-ci-settings.xml index 43ac894..f4e2fd1 100644 --- a/maven-ci-settings.xml +++ b/maven-ci-settings.xml @@ -19,7 +19,7 @@ true - ${env.GPG_EXECUTABLE} + gpg ${env.GPG_PASSPHRASE} diff --git a/pom.xml b/pom.xml index 9bbabf1..ba65752 100644 --- a/pom.xml +++ b/pom.xml @@ -27,6 +27,12 @@ Fraunhofer IOSB https://www.iosb.fraunhofer.de + + Michael Jacoby + michael.jacoby@iosb.fraunhofer.de + Fraunhofer IOSB + https://www.iosb.fraunhofer.de + checks @@ -77,7 +83,7 @@ 3.5.2 4.12.0 UTF-8 - ${maven.multiModuleProjectDirectory} + ${project.basedir} 2.0.16 reuseReports https://sonarcloud.io @@ -152,7 +158,7 @@ validate - ${maven.multiModuleProjectDirectory}/checkstyle.xml + ${root.basedir}/checkstyle.xml true true @@ -179,7 +185,7 @@ dependency-check-maven ${maven.plugin.owasp.version} - NIST_NVD_API + ${env.NIST_NVD_API_KEY} 6 owaspSuppressions.xml @@ -311,12 +317,13 @@ maven-javadoc-plugin ${maven.plugin.javadoc.version} - false + true + attach-javadocs - javadoc + jar @@ -360,13 +367,17 @@ - com.diffplug.spotless - spotless-maven-plugin + org.apache.maven.plugins + maven-compiler-plugin org.apache.maven.plugins maven-release-plugin + + com.diffplug.spotless + spotless-maven-plugin + org.codehaus.mojo license-maven-plugin @@ -378,26 +389,8 @@ - - owasp - - true - true - - - - - org.owasp - dependency-check-maven - - - - coverage - - checks - @@ -416,11 +409,23 @@ + + owasp + + true + true + + + + + org.owasp + dependency-check-maven + + + + release - - checks - false true