You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/09/02 00:22:40 UTC
[commons-beanutils] branch 1.X updated: Add default Maven goal and
GitHub build.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/1.X by this push:
new f874384 Add default Maven goal and GitHub build.
f874384 is described below
commit f874384ddc756f1f1206da4589c6c60b3937fc4f
Author: Gary Gregory <gg...@rocketsoftware.com>
AuthorDate: Wed Sep 1 20:22:31 2021 -0400
Add default Maven goal and GitHub build.
---
.github/workflows/maven.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++
pom.xml | 1 +
2 files changed, 50 insertions(+)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..4515fad
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,49 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Java CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ continue-on-error: ${{ matrix.experimental }}
+ strategy:
+ matrix:
+ java: [ 8, 11, 16 ]
+ experimental: [false]
+ include:
+ - java: 17-ea
+ experimental: true
+
+ steps:
+ - uses: actions/checkout@v2.3.4
+ - uses: actions/cache@v2.1.6
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
+ - name: Build with Maven
+ run: mvn -V -e --file pom.xml --no-transfer-progress
+
+# For Java 11, you can be more strict: -DadditionalJOption=-Xdoclint/package:-org.apache.commons.configuration2.plist
diff --git a/pom.xml b/pom.xml
index 2ed6181..fdf9727 100644
--- a/pom.xml
+++ b/pom.xml
@@ -367,6 +367,7 @@
</dependencies>
<build>
+ <defaultGoal>clean apache-rat:check verify clirr:check</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>