Skip to content
Permalink
Browse files
[EXEC-111 Update Java requirement from Java 7 to 8.
Also add and use defaultGoal in POM for CI builds.
  • Loading branch information
garydgregory committed Aug 8, 2020
1 parent c5dc73d commit 8f3da5d54d7c23eea8406ae6ea0f92388c285f72
Showing 3 changed files with 41 additions and 41 deletions.
@@ -37,4 +37,4 @@ jobs:
with:
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -V apache-rat:check spotbugs:check javadoc:javadoc -Ddoclint=all package --file pom.xml --no-transfer-progress
run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress
@@ -1,34 +1,31 @@
# 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.

language: java
sudo: true

# Required to build with openjdk6 and 7
dist: trusty

addons:
apt:
packages:
- openjdk-6-jdk

jdk:
- openjdk6
- openjdk7
- openjdk8
- openjdk11

after_success:
- mvn -V clean cobertura:cobertura coveralls:report --no-transfer-progress
# 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.

language: java
sudo: true

# Required to build with openjdk7
dist: trusty

jdk:
- openjdk7
- openjdk8
- openjdk11

script:
- mvn -V --no-transfer-progress -Ddoclint=all

after_success:
- mvn -V --no-transfer-progress clean cobertura:cobertura coveralls:report
15 pom.xml
@@ -23,7 +23,6 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<name>Apache Commons Exec</name>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.4.0-SNAPSHOT</version>

@@ -113,6 +112,8 @@
</dependencies>

<build>
<!-- TODO Add checkstyle:check -->
<defaultGoal>clean verify apache-rat:check japicmp:cmp javadoc:javadoc</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -262,19 +263,21 @@

<properties>
<!-- Compiler source and target JVM (see parent pom). Must agree with versions in build.xml -->
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<test>*Test</test>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<commons.rc.version>RC1</commons.rc.version>
<commons.bc.version>1.3</commons.bc.version>
<commons.release.version>1.4.0</commons.release.version>
<commons.release.isDistModule>true</commons.release.isDistModule>
<commons.componentid>exec</commons.componentid>
<commons.module.name>org.apache.commons.exec</commons.module.name>
<commons.jira.id>EXEC</commons.jira.id>
<commons.jira.pid>12310814</commons.jira.pid>
<commons.release.version>1.4</commons.release.version>
<!-- The RC version used in the staging repository URL. -->
<commons.rc.version>RC1</commons.rc.version>
<!-- Tell M2 not to use platform specific encodings for copying resources -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
<test>*Test</test>
</properties>
</project>

0 comments on commit 8f3da5d

Please sign in to comment.