[Git][java-team/args4j][upstream] 4 commits: New upstream version 2.34

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Tue Sep 22 22:04:21 BST 2026



Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / args4j


Commits:
97a91160 by Emmanuel Bourg at 2026-09-22T18:49:31+02:00
New upstream version 2.34
- - - - -
5d0e5700 by Emmanuel Bourg at 2026-09-22T18:51:47+02:00
New upstream version 2.35
- - - - -
94eea03d by Emmanuel Bourg at 2026-09-22T18:53:52+02:00
New upstream version 2.36
- - - - -
4f5fefbb by Emmanuel Bourg at 2026-09-22T18:58:38+02:00
New upstream version 2.37
- - - - -


22 changed files:

- README.md
- args4j-maven-plugin-example/pom.xml
- args4j-maven-plugin/pom.xml
- args4j-maven-plugin/src/main/java/org/kohsuke/args4j/maven/Args4jUsageMojo.java
- args4j-tools/pom.xml
- args4j-tools/src/org/kohsuke/args4j/apt/AnnotationProcessorImpl.java
- args4j/examples/SampleStarter.java
- args4j/pom.xml
- args4j/src/org/kohsuke/args4j/Config.java
- args4j/src/org/kohsuke/args4j/spi/ConfigElement.java
- args4j/src/org/kohsuke/args4j/spi/EnumOptionHandler.java
- args4j/src/org/kohsuke/args4j/spi/OptionImpl.java
- args4j/src/org/kohsuke/args4j/spi/RestOfArgumentsHandler.java
- args4j/src/org/kohsuke/args4j/spi/StopOptionHandler.java
- args4j/src/org/kohsuke/args4j/spi/StringArrayOptionHandler.java
- args4j/src/org/kohsuke/args4j/spi/SubCommandHandler.java
- args4j/test/org/kohsuke/args4j/EnumArgumentTest.java
- args4j/test/org/kohsuke/args4j/spi/MacAddressOptionHandlerTest.java
- args4j/test/org/kohsuke/args4j/spi/MultiPathOptionHandlerTest.java
- args4j/test/org/kohsuke/args4j/spi/SettersTest.java
- args4j/test/org/kohsuke/args4j/spi/StringArrayOptionHandlerTest.java
- pom.xml


Changes:

=====================================
README.md
=====================================
@@ -1,12 +1,12 @@
 args4j
 ======
 args4j is a small Java class library that makes it easy to parse command line options/arguments in your CUI
-application. See more info at [http://args4j.kohsuke.org/]
+application. See more info at https://args4j.kohsuke.org/
 
 Why should I use it?
 --------------------
 
-See [the quick intro](http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html)
+See [the quick intro](https://web.archive.org/web/20120605024439/http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html)
 
 - It makes command line parsing very easy by using annotations
 - Generate usage text very easily
@@ -14,25 +14,24 @@ See [the quick intro](http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsi
 - Full localization support
 - Designed to parse javac like options, as opposed to GNU-style (where ls -lR is considered to have two options l and
   R).
-- Licensed under [the MIT license](http://www.opensource.org/licenses/mit-license.php).
+- Licensed under [the MIT license](https://opensource.org/license/mit/).
 
 How can I use it?
 -----------------
 
 1. Check [the sample](https://github.com/kohsuke/args4j/blob/master/args4j/examples/SampleMain.java). This is how your
    code will look like.
-2. [Download](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22args4j%22%20AND%20a%3A%22args4j%22) the distribution or include the library from
+2. [Download](https://search.maven.org/search?q=g:args4j%20AND%20a:args4j) the distribution or include the library from
    the Maven Repository.
 3. Write your code.
 
 More Resources
 --------------
 
-1. [A small tutorial](http://args4j.kohsuke.org/sample.html) for the use of the Starter and Args4J
-2. [javadoc](http://args4j.kohsuke.org/args4j/apidocs/)
-3. [How to generate a documentation for your CLI](http://args4j.kohsuke.org/apt.html)
-4. [Extend args4j to handle other Java types](http://args4j.kohsuke.org/implementOptionhandler.html)
-5. [Kohsuke's Blog: Parsing command line options in JDK 5.0 style]
-   (http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html)
-6. [A comparison between Commons CLI and Args4j](http://hikage.developpez.com/java/articles/api/cli-vs-args4j/) in
+1. [A small tutorial](https://args4j.kohsuke.org/sample.html) for the use of the Starter and Args4J
+2. [javadoc](https://args4j.kohsuke.org/args4j/apidocs/)
+3. [How to generate a documentation for your CLI](https://args4j.kohsuke.org/apt.html)
+4. [Extend args4j to handle other Java types](https://args4j.kohsuke.org/implementOptionhandler.html)
+5. [Kohsuke's Blog: Parsing command line options in JDK 5.0 style](https://web.archive.org/web/20120605024439/http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html)
+6. [A comparison between Commons CLI and Args4j](https://hikage.developpez.com/java/articles/api/cli-vs-args4j/) in
    French


=====================================
args4j-maven-plugin-example/pom.xml
=====================================
@@ -4,7 +4,7 @@
   <parent>
     <groupId>args4j</groupId>
     <artifactId>args4j-site</artifactId>
-    <version>2.33</version>
+    <version>2.37</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
   <artifactId>args4j-maven-plugin-example</artifactId>
@@ -13,9 +13,6 @@
 
   <description>Example of running the maven plugin</description>
 
-  <prerequisites>
-    <maven>2.0</maven>
-  </prerequisites>
   <inceptionYear>2011</inceptionYear>
 
   <build>
@@ -42,6 +39,17 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              <Automatic-Module-Name>args4j.maven.plugin.example</Automatic-Module-Name>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
   <dependencies>


=====================================
args4j-maven-plugin/pom.xml
=====================================
@@ -4,7 +4,7 @@
   <parent>
     <groupId>args4j</groupId>
     <artifactId>args4j-site</artifactId>
-    <version>2.33</version>
+    <version>2.37</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
   <groupId>org.kohsuke.args4j</groupId>
@@ -22,17 +22,33 @@
       <groupId>args4j</groupId>
       <artifactId>args4j-tools</artifactId>
       <version>${project.version}</version>
-      <classifier>all</classifier>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-project</artifactId>
-      <version>2.0.4</version> 
+      <classifier>jar-with-dependencies</classifier>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-plugin-api</artifactId>
-      <version>2.0</version>
+      <version>3.8.1</version>
     </dependency>
+	<dependency>
+		<groupId>org.apache.maven.plugin-tools</groupId>
+		<artifactId>maven-plugin-annotations</artifactId>
+		<version>3.8.1</version>
+		<scope>provided</scope>
+	</dependency>
   </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              <Automatic-Module-Name>args4j.maven.plugin</Automatic-Module-Name>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>


=====================================
args4j-maven-plugin/src/main/java/org/kohsuke/args4j/maven/Args4jUsageMojo.java
=====================================
@@ -3,41 +3,43 @@ package org.kohsuke.args4j.maven;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.kohsuke.args4j.apt.Main;
 
 import java.io.*;
+import java.lang.ProcessBuilder.Redirect;
 import java.net.URLDecoder;
 import java.util.List;
 
 /**
- * @goal usage
+ * Maven goal to create a usage description file.
  */
+ at Mojo(name = "usage")
 public class Args4jUsageMojo extends AbstractMojo {
 
     /**
      * Mode. 'TXT' 'XML' or 'HTML'
-     * @parameter default-value="TXT"
-     * @required
      */
+	@Parameter(defaultValue = "TXT", required = true)
     private String mode;
 
     /**
      * Location of the source files.
-     * @parameter expression="${basedir}/src/main/java"
-     * @required
      */
+	@Parameter(defaultValue = "${basedir}/src/main/java", required = true)
     private String sourceDir;
 
     /**
      * directory where the the usage are generated
-     * @parameter expression="${project.build.directory}/args4j"
-     * @required
      */
+	@Parameter(defaultValue = "${project.build.directory}/args4j", required = true)
     protected String args4jBuildDirPath;
 
     /**
-     * @parameter
+     * Source files to analyze.
      */
+	@Parameter
     private List<String> sourceFiles;
 
     private File jar;
@@ -84,14 +86,13 @@ public class Args4jUsageMojo extends AbstractMojo {
         String outputDir = args4jBuildDir.getAbsolutePath();
         ProcessBuilder pb = new ProcessBuilder();
         pb.command("java","-jar", jar.getAbsolutePath(), "-o", outputDir, "-mode", mode, sourceFile);
+        pb.redirectError(Redirect.INHERIT);
+        pb.redirectOutput(Redirect.INHERIT);
 
         printCommand(pb);
         Process process = pb.start();
 
-        InputStreamReader isr = dumpOutput(process);
         int r = process.waitFor();
-
-        isr.close();
         if (r !=0)
             throw new IOException("args4j generation failed: "+r);
     }
@@ -113,15 +114,4 @@ public class Args4jUsageMojo extends AbstractMojo {
         }
         return directory;
     }
-
-    private InputStreamReader dumpOutput(Process process) throws IOException {
-        InputStream is = process.getInputStream();
-        InputStreamReader isr = new InputStreamReader(is);
-        BufferedReader br = new BufferedReader(isr);
-        String line;
-        while ((line = br.readLine()) != null) {
-          System.out.println(line);
-        }
-        return isr;
-    }
 }


=====================================
args4j-tools/pom.xml
=====================================
@@ -4,7 +4,7 @@
   <parent>
     <groupId>args4j</groupId>
     <artifactId>args4j-site</artifactId>
-    <version>2.33</version>
+    <version>2.37</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
   <artifactId>args4j-tools</artifactId>
@@ -38,28 +38,33 @@
               <addClasspath>true</addClasspath>
               <mainClass>${mainClass}</mainClass>
             </manifest>
+            <manifestEntries>
+              <Automatic-Module-Name>args4j.tools</Automatic-Module-Name>
+            </manifestEntries>
           </archive>
         </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-shade-plugin</artifactId>
-        <version>1.4</version>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>3.3.0</version>
+        <configuration>
+          <archive>
+            <manifest>
+              <mainClass>${mainClass}</mainClass>
+            </manifest>
+          </archive>
+          <descriptorRefs>
+            <descriptorRef>jar-with-dependencies</descriptorRef>
+          </descriptorRefs>
+        </configuration>
         <executions>
           <execution>
+            <id>make-assembly</id>
             <phase>package</phase>
             <goals>
-              <goal>shade</goal>
+              <goal>single</goal>
             </goals>
-            <configuration>
-              <shadedArtifactAttached>true</shadedArtifactAttached>
-              <shadedClassifierName>all</shadedClassifierName>
-                <transformers>
-                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                  <mainClass>${mainClass}</mainClass>
-                </transformer>
-              </transformers>
-            </configuration>
           </execution>
         </executions>
       </plugin>
@@ -74,31 +79,14 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.11</version>
+      <version>4.13.2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.mockito</groupId>
-      <artifactId>mockito-all</artifactId>
-      <version>1.8.5</version>
+      <artifactId>mockito-core</artifactId>
+      <version>3.11.2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
-  <profiles>
-    <profile>
-      <id>jdk-tools-jar</id>
-      <activation>
-        <os><family>!mac</family></os>
-      </activation>
-      <dependencies>
-        <dependency>
-          <groupId>jdk</groupId>
-          <artifactId>tools</artifactId>
-          <version>5.0</version>
-          <scope>system</scope>
-          <systemPath>${java.home}/../lib/tools.jar</systemPath>
-        </dependency>
-      </dependencies>
-    </profile>
-  </profiles>
 </project>


=====================================
args4j-tools/src/org/kohsuke/args4j/apt/AnnotationProcessorImpl.java
=====================================
@@ -19,7 +19,7 @@ import javax.lang.model.element.Element;
 import javax.lang.model.element.ExecutableElement;
 import javax.lang.model.element.TypeElement;
 import javax.lang.model.element.VariableElement;
-import javax.lang.model.util.SimpleElementVisitor6;
+import javax.lang.model.util.SimpleElementVisitor7;
 import javax.lang.model.util.Types;
 import javax.tools.Diagnostic.Kind;
 
@@ -36,7 +36,6 @@ import static javax.tools.Diagnostic.Kind.*;
  * 
  * @author Kohsuke Kawaguchi
  */
- at SuppressWarnings("Since15")
 public class AnnotationProcessorImpl extends AbstractProcessor {
 
     private File outDir;
@@ -134,7 +133,7 @@ public class AnnotationProcessorImpl extends AbstractProcessor {
 
         for (Element d : params) {
 
-            d.accept(new SimpleElementVisitor6<Void, Void>() {
+            d.accept(new SimpleElementVisitor7<Void, Void>() {
                 @Override
                 public Void visitVariable(VariableElement e, Void p) {
                     TypeElement dt = (TypeElement) e.getEnclosingElement();


=====================================
args4j/examples/SampleStarter.java
=====================================
@@ -30,7 +30,7 @@ public class SampleStarter {
 	}
 
 	/**
-	 * First try is to run this <tt>run()</tt> method.
+	 * First try is to run this <code>run()</code> method.
 	 */
 	public void xrun() {
 		System.out.println("SampleStarter.run()");
@@ -39,7 +39,7 @@ public class SampleStarter {
 	
 	/**
 	 * If you want to get the args-Array from the command line
-	 * use the signature <tt>run(String[] args)</tt>. But then there must 
+	 * use the signature <code>run(String[] args)</code>. But then there must 
 	 * not be a run() because that is executed prior to this.
 	 * @param args The arguments as specified on the command line
 	 */


=====================================
args4j/pom.xml
=====================================
@@ -3,7 +3,7 @@
   <parent>
     <groupId>args4j</groupId>
     <artifactId>args4j-site</artifactId>
-    <version>2.33</version>
+    <version>2.37</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
   <artifactId>args4j</artifactId>
@@ -31,12 +31,25 @@
         </includes>
       </testResource>
     </testResources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              <Automatic-Module-Name>args4j</Automatic-Module-Name>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
   </build>
   <dependencies>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.11</version>
+      <version>4.13.2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>


=====================================
args4j/src/org/kohsuke/args4j/Config.java
=====================================
@@ -67,7 +67,7 @@ public class Config {
 	/**
 	 * Parses a XML file and returns a Config object holding the information.
 	 * @param xml source of the xml data
-	 * @return
+	 * @return The parsed configuration.
 	 * @throws IOException
 	 * @throws SAXException
 	 */


=====================================
args4j/src/org/kohsuke/args4j/spi/ConfigElement.java
=====================================
@@ -1,7 +1,7 @@
 package org.kohsuke.args4j.spi;
 
 /**
- * The ConfigElement is an <tt><option></tt> or <tt><argument></tt> tag
+ * The ConfigElement is an <code><option></code> or <code><argument></code> tag
  * in the xml configuration file.
  * @author Jan Materne
  */
@@ -18,9 +18,9 @@ public class ConfigElement {
 	public boolean hidden = false;
 	/**
 	 * Ensures that only a field XOR a method is set.
-	 * @return
+	 * @return Whether this element has invalid settings.
 	 */
 	public boolean isInvalid() {
 		return field == null && method == null || field != null && method != null;
 	}
-}
\ No newline at end of file
+}


=====================================
args4j/src/org/kohsuke/args4j/spi/EnumOptionHandler.java
=====================================
@@ -43,7 +43,7 @@ public class EnumOptionHandler<T extends Enum<T>> extends OptionHandler<T> {
 
     /* 
      * Returns all values of an enum type split by pipe.
-     * <tt>[ one | two | three]</tt>
+     * <code>[ one | two | three]</code>
      * @see org.kohsuke.args4j.spi.OptionHandler#getDefaultMetaVariable()
      */
     @Override


=====================================
args4j/src/org/kohsuke/args4j/spi/OptionImpl.java
=====================================
@@ -24,6 +24,6 @@ public class OptionImpl extends AnnotationImpl implements Option {
     
     public String[] forbids;
     public String[] forbids() {
-        return depends;
+        return forbids;
     }
-}
\ No newline at end of file
+}


=====================================
args4j/src/org/kohsuke/args4j/spi/RestOfArgumentsHandler.java
=====================================
@@ -11,9 +11,9 @@ import org.kohsuke.args4j.CmdLineException;
  * <p>
  * Used with {@link Argument}, this implements a semantics where
  * non-option token causes the option parsing to terminate.
- * An example of this is <tt>ssh(1)</tt>, where <code>ssh -p 222 abc</code> will treat 
- * <code>-p</code> as an option to <tt>ssh</tt>, but <code>ssh abc -p 222</code> is 
- * considered to have no option for <tt>ssh</tt>.
+ * An example of this is <code>ssh(1)</code>, where <code>ssh -p 222 abc</code> will treat 
+ * <code>-p</code> as an option to <code>ssh</code>, but <code>ssh abc -p 222</code> is 
+ * considered to have no option for <code>ssh</code>.
  *
  * @author Kohsuke Kawaguchi
  */


=====================================
args4j/src/org/kohsuke/args4j/spi/StopOptionHandler.java
=====================================
@@ -5,11 +5,11 @@ import org.kohsuke.args4j.CmdLineParser;
 import org.kohsuke.args4j.OptionDef;
 
 /**
- * {@link OptionHandler} for the option terminator <tt>--</tt>.
+ * {@link OptionHandler} for the option terminator <code>--</code>.
  *
  * <p>
  * This {@link OptionHandler} can be used to implement the special token
- * <tt>--</tt> that indicates that the rest of tokens are not options, but arguments.
+ * <code>--</code> that indicates that the rest of tokens are not options, but arguments.
  *
  * <p>
  * For example, if you have the following class:


=====================================
args4j/src/org/kohsuke/args4j/spi/StringArrayOptionHandler.java
=====================================
@@ -28,7 +28,7 @@ import org.kohsuke.args4j.OptionDef;
  * <code>banan</code>, <code>hruska</code>, and <code>jablko</code>.</p>
  *
  * <p>
- * This {@code OptionHandler} scans for parameter which begins with <tt>-</tt>. If found, it will stop.</p>
+ * This {@code OptionHandler} scans for parameter which begins with <code>-</code>. If found, it will stop.</p>
  *
  * @author PlainText,LuVar
  */
@@ -69,4 +69,4 @@ public class StringArrayOptionHandler extends OptionHandler<String> {
         return counter;
 	}
 
-}
\ No newline at end of file
+}


=====================================
args4j/src/org/kohsuke/args4j/spi/SubCommandHandler.java
=====================================
@@ -13,7 +13,7 @@ import java.util.ResourceBundle;
  * {@link OptionHandler} used with {@link Argument} for parsing typical "sub-command" pattern.
  *
  * <p>
- * The "sub-command" pattern refers to the design of the command line like <tt>git</tt> and <tt>svn</tt>, where
+ * The "sub-command" pattern refers to the design of the command line like <code>git</code> and <code>svn</code>, where
  * the first argument to the command designates a sub-command (say <code>git checkout</code>), then everything
  * that follows afterward are parsed by this sub-command (which is usually different depending on
  * which sub-command was selected.)
@@ -61,7 +61,7 @@ import java.util.ResourceBundle;
  * The same field/setter must be also annotated with {@link SubCommands} that specify possible sub-commands.
  *
  * <li>
- * Any {@link Option}s that you define in the <tt>Git</tt> class above can parse options that appear
+ * Any {@link Option}s that you define in the <code>Git</code> class above can parse options that appear
  * prior to the sub-command name. This is useful for defining global options that work across sub-commands.
  *
  * <li>
@@ -134,7 +134,7 @@ public class SubCommandHandler extends OptionHandler<Object> {
     }
 
     protected CmdLineParser configureParser(Object subCmd, SubCommand c) {
-        return new CmdLineParser(subCmd);
+        return new CmdLineParser(subCmd, owner.getProperties());
     }
 
     protected Object instantiate(SubCommand c) {


=====================================
args4j/test/org/kohsuke/args4j/EnumArgumentTest.java
=====================================
@@ -2,7 +2,7 @@ package org.kohsuke.args4j;
 
 import org.kohsuke.args4j.EnumAttribute.Animal;
 
-import junit.framework.Assert;
+import org.junit.Assert;
 
 
 public class EnumArgumentTest extends Args4JTestBase<EnumArgument> {


=====================================
args4j/test/org/kohsuke/args4j/spi/MacAddressOptionHandlerTest.java
=====================================
@@ -2,8 +2,8 @@ package org.kohsuke.args4j.spi;
 
 import java.util.Arrays;
 import java.util.Locale;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.fail;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
 
 import junit.framework.TestCase;
 import org.kohsuke.args4j.CmdLineException;


=====================================
args4j/test/org/kohsuke/args4j/spi/MultiPathOptionHandlerTest.java
=====================================
@@ -2,7 +2,6 @@ package org.kohsuke.args4j.spi;
 
 import junit.framework.TestCase;
 import org.kohsuke.args4j.CmdLineException;
-import sun.reflect.generics.reflectiveObjects.NotImplementedException;
 
 import java.lang.reflect.AnnotatedElement;
 import java.nio.file.Path;
@@ -100,11 +99,11 @@ public class MultiPathOptionHandlerTest extends TestCase {
         }
 
         public FieldSetter asFieldSetter() {
-            throw new NotImplementedException();
+            throw new UnsupportedOperationException();
         }
 
         public AnnotatedElement asAnnotatedElement() {
-            throw new NotImplementedException();
+            throw new UnsupportedOperationException();
         }
 
         List<Path> getCollection() {


=====================================
args4j/test/org/kohsuke/args4j/spi/SettersTest.java
=====================================
@@ -2,7 +2,7 @@ package org.kohsuke.args4j.spi;
 
 import java.lang.reflect.Field;
 
-import junit.framework.Assert;
+import org.junit.Assert;
 import junit.framework.TestCase;
 
 /**


=====================================
args4j/test/org/kohsuke/args4j/spi/StringArrayOptionHandlerTest.java
=====================================
@@ -1,7 +1,7 @@
 package org.kohsuke.args4j.spi;
 
 import java.util.Arrays;
-import junit.framework.Assert;
+import org.junit.Assert;
 import junit.framework.TestCase;
 import org.kohsuke.args4j.Argument;
 


=====================================
pom.xml
=====================================
@@ -1,15 +1,16 @@
-<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.kohsuke</groupId>
     <artifactId>pom</artifactId>
-    <version>14</version>
+    <version>21</version>
   </parent>
 
   <groupId>args4j</groupId>
   <artifactId>args4j-site</artifactId>
   <name>args4j parent</name>
-  <version>2.33</version>
+  <version>2.37</version>
   <packaging>pom</packaging>
   <description>args4j : Java command line arguments parser</description>
   <url>http://args4j.kohsuke.org/</url>
@@ -17,7 +18,7 @@
     <url>https://args4j.dev.java.net/issues</url>
   </issueManagement>
   <inceptionYear>2003</inceptionYear>
-  
+
   <ciManagement>
     <notifiers>
       <notifier>
@@ -64,7 +65,7 @@
     <connection>scm:git:git at github.com/kohsuke/args4j.git</connection>
     <developerConnection>scm:git:ssh://git@github.com/kohsuke/args4j.git</developerConnection>
     <url>http://args4j.kohsuke.org/</url>
-    <tag>args4j-site-2.33</tag>
+    <tag>args4j-site-2.37</tag>
   </scm>
 
   <distributionManagement>
@@ -81,6 +82,7 @@
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <java.level>11</java.level>
   </properties>
 
   <build>
@@ -88,22 +90,121 @@
       <plugins>
         <plugin>
           <artifactId>maven-compiler-plugin</artifactId>
-          <version>3.1</version>
-          <configuration>
-            <source>1.6</source>
-            <target>1.6</target>
-            <compilerArgument>-proc:none</compilerArgument>
-          </configuration>
+          <version>3.8.1</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <version>3.2.1</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>3.6.3</version>
         </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-plugin-plugin</artifactId>
+          <version>3.11.0</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>3.3.0</version>
+        </plugin>
+
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
-          <version>2.3.1</version>
+          <version>3.2.0</version>
+        </plugin>
+
+        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>
+                      org.apache.maven.plugins
+                    </groupId>
+                    <artifactId>
+                      maven-plugin-plugin
+                    </artifactId>
+                    <versionRange>[3.2,)</versionRange>
+                    <goals>
+                      <goal>descriptor</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.codehaus.gmaven</groupId>
+                    <artifactId>gmaven-plugin</artifactId>
+                    <versionRange>[1.4,)</versionRange>
+                    <goals>
+                      <goal>testCompile</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
         </plugin>
       </plugins>
-    </pluginManagement>  
-  
+    </pluginManagement>
+
     <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>${java.level}</source>
+          <target>${java.level}</target>
+          <compilerArgument>-proc:none</compilerArgument>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <failOnError>false</failOnError>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
@@ -111,10 +212,11 @@
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
+        <version>5.1.9</version>
         <extensions>true</extensions>
         <configuration>
           <instructions>
-            <Bundle-SymbolicName>org.kohsuke.${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>org.kohsuke.${project.artifactId}</Bundle-SymbolicName>
             <_includeresource>${basedir}/../LICENSE</_includeresource>
             <_sources>true</_sources>
           </instructions>
@@ -128,10 +230,15 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-project-info-reports-plugin</artifactId>
-        <version>2.4</version>
+        <version>2.9</version>
       </plugin>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
+        <version>3.6.3</version>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
       </plugin>
     </plugins>
   </reporting>
@@ -142,7 +249,7 @@
       <url>http://www.opensource.org/licenses/mit-license.php</url>
     </license>
   </licenses>
-  
+
   <modules>
     <module>args4j</module>
     <module>args4j-tools</module>



View it on GitLab: https://salsa.debian.org/java-team/args4j/-/compare/37b95ea5c319ac1b8ab9a731d7c20cf250ceab2a...4f5fefbbe2dddc6be0433cac4bdb61e78d219471

-- 
View it on GitLab: https://salsa.debian.org/java-team/args4j/-/compare/37b95ea5c319ac1b8ab9a731d7c20cf250ceab2a...4f5fefbbe2dddc6be0433cac4bdb61e78d219471
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20260922/c6a5de58/attachment.htm>


More information about the pkg-java-commits mailing list