From 598d7e69d0194f9e19ddb5dca87ac9c92578a102 Mon Sep 17 00:00:00 2001 From: Matt Phelps Date: Thu, 13 Oct 2022 14:09:42 -0500 Subject: [PATCH 1/3] Initial maven-build workflow --- .github/workflows/maven-build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/maven-build.yml diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 0000000..68da3ec --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,23 @@ +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B -V verify --file pom.xml From c22c50d970e5771d8586b011dd33a7c9da4d7590 Mon Sep 17 00:00:00 2001 From: Matt Phelps Date: Thu, 13 Oct 2022 14:09:42 -0500 Subject: [PATCH 2/3] Fix warning about ambiguous artifactId. See details: "The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead." This warning occurs in modern versions of Maven. One line change. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7fca073..7ac4627 100644 --- a/pom.xml +++ b/pom.xml @@ -81,7 +81,7 @@ See the License for the specific language governing permissions and limitations under the License. - The ${artifactId} Authors + The ${project.artifactId} Authors 2019 From 22036b34de3e4a90c5932c3e78b32da808297b02 Mon Sep 17 00:00:00 2001 From: Matt Phelps Date: Thu, 13 Oct 2022 14:09:42 -0500 Subject: [PATCH 3/3] Skip Javadoc in maven build --- .github/workflows/maven-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 68da3ec..359c433 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -20,4 +20,4 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn -B -V verify --file pom.xml + run: mvn -B -V verify -Dmaven.javadoc.skip=true --file pom.xml