Skip to content

Commit 0faa49c

Browse files
authored
Merge branch 'master' into CLI-287
2 parents d5bf610 + 66cc7b4 commit 0faa49c

76 files changed

Lines changed: 1357 additions & 1216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
version: 2
17+
updates:
18+
- package-ecosystem: "maven"
19+
directory: "/"
20+
schedule:
21+
interval: "daily"
22+
- package-ecosystem: "github-actions"
23+
directory: "/"
24+
schedule:
25+
interval: "daily"

.github/workflows/maven.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Java CI
17+
18+
on: [push, pull_request]
19+
20+
jobs:
21+
build:
22+
23+
runs-on: ubuntu-latest
24+
continue-on-error: ${{ matrix.experimental }}
25+
strategy:
26+
matrix:
27+
java: [ 8, 11, 15 ]
28+
experimental: [false]
29+
include:
30+
- java: 16-ea
31+
experimental: true
32+
- java: 17-ea
33+
experimental: true
34+
35+
steps:
36+
- uses: actions/checkout@v2.3.4
37+
- uses: actions/cache@v2
38+
with:
39+
path: ~/.m2/repository
40+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
41+
restore-keys: |
42+
${{ runner.os }}-maven-
43+
- name: Set up JDK ${{ matrix.java }}
44+
uses: actions/setup-java@v1.4.3
45+
with:
46+
java-version: ${{ matrix.java }}
47+
- name: Build with Maven
48+
run: mvn -V --file pom.xml --no-transfer-progress

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ site-content
1717
/.classpath
1818
/.project
1919
/.settings/
20+
/commons-cli.iml

.travis.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,15 @@
1414
# limitations under the License.
1515

1616
language: java
17-
sudo: false
18-
19-
addons:
20-
apt:
21-
packages:
22-
- openjdk-6-jdk
23-
24-
# use java 6 compatible maven version (installed into target directory so rat check passes)
25-
before_install:
26-
- wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip -P ./target
27-
- unzip -qq ./target/apache-maven-3.2.5-bin.zip -d ./target
28-
- export M2_HOME=$PWD/target/apache-maven-3.2.5
29-
- export PATH=$M2_HOME/bin:$PATH
3017

3118
jdk:
32-
- openjdk6
33-
- openjdk7
34-
- oraclejdk8
19+
- openjdk8
20+
- openjdk11
21+
- openjdk15
22+
- openjdk-ea
3523

3624
script:
37-
- mvn
25+
- mvn -V --no-transfer-progress
3826

3927
after_success:
40-
- mvn clean test jacoco:report coveralls:report -Ptravis-jacoco
28+
- mvn clean test jacoco:report coveralls:report -Ptravis-jacoco --no-transfer-progress

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Getting Started
5050

5151
+ Make sure you have a [JIRA account](https://issues.apache.org/jira/).
5252
+ Make sure you have a [GitHub account](https://github.com/signup/free).
53-
+ If you're planning to implement a new feature it makes sense to discuss you're changes on the [dev list](https://commons.apache.org/mail-lists.html) first. This way you can make sure you're not wasting your time on something that isn't considered to be in Apache Commons CLI's scope.
53+
+ If you're planning to implement a new feature it makes sense to discuss your changes on the [dev list](https://commons.apache.org/mail-lists.html) first. This way you can make sure you're not wasting your time on something that isn't considered to be in Apache Commons CLI's scope.
5454
+ Submit a ticket for your issue, assuming one does not already exist.
5555
+ Clearly describe the issue including steps to reproduce when it is a bug.
5656
+ Make sure you fill in the earliest version that you know has the issue.

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache Commons CLI
2-
Copyright 2001-2017 The Apache Software Foundation
2+
Copyright 2001-2019 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
Apache Commons CLI
4444
===================
4545

46-
[![Build Status](https://travis-ci.org/apache/commons-cli.svg?branch=master)](https://travis-ci.org/apache/commons-cli)
47-
[![Coverage Status](https://coveralls.io/repos/github/apache/commons-cli/badge.svg?branch=master)](https://coveralls.io/github/apache/commons-cli?branch=master)
46+
[![Build Status](https://travis-ci.org/apache/commons-cli.svg)](https://travis-ci.org/apache/commons-cli)
47+
[![Coverage Status](https://coveralls.io/repos/apache/commons-cli/badge.svg)](https://coveralls.io/r/apache/commons-cli)
48+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/commons-cli/commons-cli/badge.svg)](https://maven-badges.herokuapp.com/maven-central/commons-cli/commons-cli/)
49+
[![Javadocs](https://javadoc.io/badge/commons-cli/commons-cli/1.4.svg)](https://javadoc.io/doc/commons-cli/commons-cli/1.4)
4850

4951
Apache Commons CLI provides a simple API for presenting, processing and validating a command line interface.
5052

@@ -101,4 +103,3 @@ Additional Resources
101103
+ `#apache-commons` IRC channel on `irc.freenode.org`
102104

103105
[ml]:https://commons.apache.org/mail-lists.html
104-

RELEASE-NOTES.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ previous versions, except for the OptionValidator class that is no longer public
1414
(change introduced in v1.2). Commons CLI 1.4 at least requires Java 5.0.
1515

1616
More information can be found on the project site at
17-
http://commons.apache.org/cli.
17+
https://commons.apache.org/cli.
1818

1919

2020
NEW FEATURES
@@ -239,13 +239,13 @@ o CLI-135: Backwards compatibility between 1.1 and 1.0 broken due to
239239
Option.addValue removal.
240240

241241

242-
Historical list of changes: http://commons.apache.org/cli/changes-report.html
242+
Historical list of changes: https://commons.apache.org/cli/changes-report.html
243243

244244
For complete information on Commons CLI, including instructions on how to
245245
submit bug reports, patches, or suggestions for improvement, see the
246246
Apache Commons CLI website:
247247

248-
http://commons.apache.org/cli/
248+
https://commons.apache.org/cli/
249249

250250
Have fun!
251251
-Apache Commons CLI team

SECURITY.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!---
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
The Apache Commons security page is [https://commons.apache.org/security.html](https://commons.apache.org/security.html).

pom.xml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.apache.commons</groupId>
2121
<artifactId>commons-parent</artifactId>
22-
<version>42</version>
22+
<version>52</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>commons-cli</groupId>
@@ -32,17 +32,17 @@
3232
Apache Commons CLI provides a simple API for presenting, processing and validating a command line interface.
3333
</description>
3434

35-
<url>http://commons.apache.org/proper/commons-cli/</url>
35+
<url>https://commons.apache.org/proper/commons-cli/</url>
3636

3737
<issueManagement>
3838
<system>jira</system>
39-
<url>http://issues.apache.org/jira/browse/CLI</url>
39+
<url>https://issues.apache.org/jira/browse/CLI</url>
4040
</issueManagement>
4141

4242
<scm>
43-
<connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-cli.git</connection>
44-
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-cli.git</developerConnection>
45-
<url>https://git-wip-us.apache.org/repos/asf?p=commons-cli.git</url>
43+
<connection>scm:git:https://gitbox.apache.org/repos/asf/commons-cli.git</connection>
44+
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-cli.git</developerConnection>
45+
<url>https://gitbox.apache.org/repos/asf?p=commons-cli.git</url>
4646
<tag>HEAD</tag>
4747
</scm>
4848

@@ -170,14 +170,14 @@
170170
<dependency>
171171
<groupId>junit</groupId>
172172
<artifactId>junit</artifactId>
173-
<version>4.12</version>
173+
<version>4.13.1</version>
174174
<scope>test</scope>
175175
</dependency>
176176
</dependencies>
177177

178178
<properties>
179-
<maven.compiler.source>1.5</maven.compiler.source>
180-
<maven.compiler.target>1.5</maven.compiler.target>
179+
<maven.compiler.source>1.7</maven.compiler.source>
180+
<maven.compiler.target>1.7</maven.compiler.target>
181181
<commons.componentid>cli</commons.componentid>
182182
<commons.module.name>org.apache.commons.cli</commons.module.name>
183183
<commons.release.version>1.4</commons.release.version>
@@ -188,12 +188,13 @@
188188
<!-- The RC version used in the staging repository URL. -->
189189
<commons.rc.version>RC1</commons.rc.version>
190190

191+
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-cli</commons.scmPubUrl>
191192
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
192193
<commons.encoding>utf-8</commons.encoding>
193194
</properties>
194195

195196
<build>
196-
<defaultGoal>clean verify apache-rat:check clirr:check checkstyle:check findbugs:check javadoc:javadoc</defaultGoal>
197+
<defaultGoal>clean package apache-rat:check clirr:check checkstyle:check findbugs:check javadoc:javadoc</defaultGoal>
197198
<plugins>
198199
<plugin>
199200
<artifactId>maven-assembly-plugin</artifactId>
@@ -205,18 +206,21 @@
205206
<tarLongFileMode>gnu</tarLongFileMode>
206207
</configuration>
207208
</plugin>
209+
<!--
210+
Fix for https://bugs.openjdk.java.net/browse/JDK-8212233
211+
which is addressed in maven-javadoc-plugin:3.1.0, see https://issues.apache.org/jira/browse/MJAVADOC-562
212+
-->
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-javadoc-plugin</artifactId>
216+
<version>${commons.javadoc.version}</version>
217+
<configuration>
218+
<source>7</source>
219+
</configuration>
220+
</plugin>
208221
</plugins>
209222
<pluginManagement>
210223
<plugins>
211-
<plugin>
212-
<groupId>org.apache.rat</groupId>
213-
<artifactId>apache-rat-plugin</artifactId>
214-
<configuration>
215-
<excludes>
216-
<exclude>src/site/resources/.htaccess</exclude>
217-
</excludes>
218-
</configuration>
219-
</plugin>
220224
<plugin>
221225
<groupId>org.apache.maven.plugins</groupId>
222226
<artifactId>maven-scm-publish-plugin</artifactId>
@@ -229,7 +233,7 @@
229233
<plugin>
230234
<groupId>org.apache.maven.plugins</groupId>
231235
<artifactId>maven-checkstyle-plugin</artifactId>
232-
<version>2.15</version>
236+
<version>${commons.checkstyle-plugin.version}</version>
233237
<configuration>
234238
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
235239
<enableRulesSummary>false</enableRulesSummary>
@@ -265,7 +269,7 @@
265269
<plugin>
266270
<groupId>org.apache.maven.plugins</groupId>
267271
<artifactId>maven-checkstyle-plugin</artifactId>
268-
<version>2.15</version>
272+
<version>${commons.checkstyle-plugin.version}</version>
269273
<configuration>
270274
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
271275
<enableRulesSummary>false</enableRulesSummary>
@@ -291,7 +295,7 @@
291295
</plugin>
292296
<plugin>
293297
<artifactId>maven-pmd-plugin</artifactId>
294-
<version>3.5</version>
298+
<version>3.14.0</version>
295299
<configuration>
296300
<targetJdk>${maven.compiler.target}</targetJdk>
297301
</configuration>
@@ -331,7 +335,7 @@
331335
<plugin>
332336
<groupId>org.apache.maven.plugins</groupId>
333337
<artifactId>maven-antrun-plugin</artifactId>
334-
<version>1.7</version>
338+
<version>3.0.0</version>
335339
<executions>
336340
<execution>
337341
<id>prepare-checkout</id>

0 commit comments

Comments
 (0)