This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new 7932d8e3a ORC-1968: Upgrade `commons-cli` to 1.10.0
7932d8e3a is described below
commit 7932d8e3a247e591ecf89b3400d47c0876b96dcc
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Aug 4 13:01:43 2025 -0700
ORC-1968: Upgrade `commons-cli` to 1.10.0
### What changes were proposed in this pull request?
This PR aims to upgrade `commons-cli` to 1.10.0 which is the first release
tested with Java 25-ea.
### Why are the changes needed?
To bring the latest improvements and bug fixes.
- https://commons.apache.org/proper/commons-cli/changes.html#a1.10.0
(2025-07-30)
- [Run Java 24 and
25-ea](https://github.com/apache/commons-cli/commit/e6a611f80f8cca0128b9a0579ae2937caca8fc7a)
- [[CLI-333] org.apache.commons.cli.Option.Builder
implements](https://github.com/apache/commons-cli/commit/c9698e622f3e0d2fe1d304056b28c24ff7d02e81)
- https://github.com/apache/commons-cli/pull/314
- https://github.com/apache/commons-cli/pull/334
- [[CLI-341] HelpFormatter infinite loop with 0 width
input](https://github.com/apache/commons-cli/commit/bce0f6a9899830eaa5161ea6fd2af04d5679257b)
- [[CLI-343] OptionFormatter.getBothOpt() lacks validation for
Options](https://github.com/apache/commons-cli/commit/859d5e5e749c1ec6a4c7f7ead88a587f316d8065)
- [[CLI-344] Option.processValue() throws NullPointerException when
passed](https://github.com/apache/commons-cli/commit/4e0cdd0f96762df26e6335be8a1ab1afd55234f1)
- [[CLI-347] Options.addOptionGroup(OptionGroup) does not remove
required](https://github.com/apache/commons-cli/commit/42be7926be5599342a812c170b03ab73f8cbb35c)
- [[CLI-349] DefaultParser.parse() throws NullPointerException when
options](https://github.com/apache/commons-cli/commit/ff678b0ac3019e621d23b2eb2230096206baae78)
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2349 from dongjoon-hyun/ORC-1968.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 7a1a34f600f69ce4fd7c34fbc6f7016182a45025)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
java/bench/pom.xml | 2 +-
java/pom.xml | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/java/bench/pom.xml b/java/bench/pom.xml
index 31ba73e47..3a57d59ef 100644
--- a/java/bench/pom.xml
+++ b/java/bench/pom.xml
@@ -82,7 +82,7 @@
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
- <version>1.9.0</version>
+ <version>${commons-cli.version}</version>
</dependency>
<dependency>
<groupId>io.airlift</groupId>
diff --git a/java/pom.xml b/java/pom.xml
index 9f1be9813..19c53b16b 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -63,6 +63,7 @@
<bouncycastle.version>1.80</bouncycastle.version>
<brotli4j.version>1.18.0</brotli4j.version>
<checkstyle.version>10.26.1</checkstyle.version>
+ <commons-cli.version>1.10.0</commons-cli.version>
<example.dir>${project.basedir}/../../examples</example.dir>
<hadoop.version>3.4.1</hadoop.version>
<java.version>17</java.version>
@@ -146,7 +147,7 @@
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
- <version>1.9.0</version>
+ <version>${commons-cli.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>