From 6336bb4f412c0e62c61431286a6ce09f41447e54 Mon Sep 17 00:00:00 2001
From: Remko Popma GraalVM includes a Maven plugin and a Gradle plugin to generate a native image during the build. Gradle users may be interested in the gradle-graal plugin by Palantir also. GraalVM includes a Maven plugin and a Gradle plugin to generate a native image during the build. Although we recommend using the official GraalVM plugins, gradle users may be interested in the graalvm-native-image-plugin plugin. By using picocli in source form, you can avoid having an external dependency on picocli.
-Picocli has only one source file: CommandLine.java.
+Picocli has only one source file: CommandLine.java.
This facilitates including picocli in your project: simply copy and paste the code of this file into a file called A Whirlwind Tour of Picocli
-version 4.7.4
+version 4.7.5
Conclusion
Announcing picocli 1.0 - a mighty tiny command line interface
-version 4.7.4,
+version 4.7.5,
2017-09-10
Feedback Welcome
diff --git a/docs/apidocs-all/allclasses-frame.html b/docs/apidocs-all/allclasses-frame.html
index ca65fc12c..b34a85aad 100644
--- a/docs/apidocs-all/allclasses-frame.html
+++ b/docs/apidocs-all/allclasses-frame.html
@@ -3,7 +3,7 @@
-Autocomplete for Java Command Line Applications
12. Releases
Build great native CLI apps in Java with GraalVM and Picocli
Conclusion
Groovy 2.5 CliBuilder Renewal (Part 1)
Wait, There’s More…
diff --git a/docs/groovy-2.5-clibuilder-renewal-part2.html b/docs/groovy-2.5-clibuilder-renewal-part2.html
index 7c5dc9077..9f13200f9 100644
--- a/docs/groovy-2.5-clibuilder-renewal-part2.html
+++ b/docs/groovy-2.5-clibuilder-renewal-part2.html
@@ -525,88 +525,88 @@
.CodeRay .change .change{color:#66f}
.CodeRay .head .head{color:#f4f}
-
-
-
+
+
+
Groovy 2.5 CliBuilder Renewal (Part 2)
Conclusion
diff --git a/docs/groovy-2.5-clibuilder-renewal.html b/docs/groovy-2.5-clibuilder-renewal.html
index daf5c0cd9..70bde93cf 100644
--- a/docs/groovy-2.5-clibuilder-renewal.html
+++ b/docs/groovy-2.5-clibuilder-renewal.html
@@ -525,88 +525,88 @@
.CodeRay .change .change{color:#66f}
.CodeRay .head .head{color:#f4f}
-
-
-
+
+
+
Groovy 2.5 CliBuilder Renewal
Conclusion
diff --git a/docs/index.adoc b/docs/index.adoc
index 012d16c7e..c272e18b5 100644
--- a/docs/index.adoc
+++ b/docs/index.adoc
@@ -1,8 +1,8 @@
= picocli - a mighty tiny command line interface
//:author: Remko Popma
//:email: rpopma@apache.org
-:revnumber: 4.7.5-SNAPSHOT
-:revdate: 2023-06-03
+:revnumber: 4.7.5
+:revdate: 2023-08-27
:toc: left
:numbered:
:toclevels: 2
@@ -120,7 +120,7 @@ class CheckSum implements Callablepicocli - a mighty tiny command line interface
@Grab('info.picocli:picocli-groovy:4.7.4')
+
@Grab('info.picocli:picocli-groovy:4.7.5')
import picocli.CommandLine
import static picocli.CommandLine.*
@@ -2263,7 +2263,7 @@
@Grab('info.picocli:picocli-groovy:4.7.4')
+
@Grab('info.picocli:picocli-groovy:4.7.5')
import static picocli.CommandLine.*
import groovy.transform.Field
import java.security.MessageDigest
@@ -2422,7 +2422,7 @@
Gradle
dependencies {
- implementation 'info.picocli:picocli:4.7.4'
+ implementation 'info.picocli:picocli:4.7.5'
}
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
- <version>4.7.4</version>
+ <version>4.7.5</version>
</dependency>
Usi
dependencies {
- implementation 'info.picocli:picocli:4.7.4'
- annotationProcessor 'info.picocli:picocli-codegen:4.7.4'
+ implementation 'info.picocli:picocli:4.7.5'
+ annotationProcessor 'info.picocli:picocli-codegen:4.7.5'
}
@@ -2511,7 +2511,7 @@
Usi
<path>
<groupId>info.picocli</groupId>
<artifactId>picocli-codegen</artifactId>
- <version>4.7.4</version>
+ <version>4.7.5</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
@@ -2536,7 +2536,7 @@
apply plugin: 'kotlin-kapt' // required
dependencies {
// ...
- kapt 'info.picocli:picocli-codegen:4.7.4'
+ kapt 'info.picocli:picocli-codegen:4.7.5'
}
+java -cp "picocli-4.7.4.jar:checksum.jar" CheckSum --algorithm SHA-1 hello.txt
java -cp "picocli-4.7.5.jar:checksum.jar" CheckSum --algorithm SHA-1 hello.txt
+java -cp "picocli-4.7.4.jar;myapp.jar" org.myorg.GreetingApp Sarah Lea
java -cp "picocli-4.7.5.jar;myapp.jar" org.myorg.GreetingApp Sarah Lea
+java -cp "picocli-4.7.4.jar;myapp.jar" org.myorg.GreetingApp --locale=es Sarah Lea
java -cp "picocli-4.7.5.jar;myapp.jar" org.myorg.GreetingApp --locale=es Sarah Lea
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli-spring-boot-starter</artifactId>
- <version>4.7.4</version>
+ <version>4.7.5</version>
</dependency>
Gradle (Groovy)
dependencies {
- implementation 'info.picocli:picocli-spring-boot-starter:4.7.4'
+ implementation 'info.picocli:picocli-spring-boot-starter:4.7.5'
}
Gradle (Kotlin)
dependencies {
- implementation("info.picocli:picocli-spring-boot-starter:4.7.4")
+ implementation("info.picocli:picocli-spring-boot-starter:4.7.5")
}
+java -cp "picocli-4.7.4.jar;myapp.jar" org.myorg.MyMainClass --option=value arg0 arg1
java -cp "picocli-4.7.5.jar;myapp.jar" org.myorg.MyMainClass --option=value arg0 arg1
+alias mycommand='java -cp "/path/to/picocli-4.7.4.jar:/path/to/myapp.jar" org.myorg.MainClass'
alias mycommand='java -cp "/path/to/picocli-4.7.5.jar:/path/to/myapp.jar" org.myorg.MainClass'
path/to/native-image -cp picocli-4.7.4.jar --static -jar myapp.jar
+path/to/native-image -cp picocli-4.7.5.jar --static -jar myapp.jar
@Grab('info.picocli:picocli-groovy:4.7.4')
+
@Grab('info.picocli:picocli-groovy:4.7.5')
@GrabConfig(systemClassLoader=true)
@Command(name = "myScript",
mixinStandardHelpOptions = true, // add --help and --version options
@@ -18728,7 +18728,7 @@
30.1.2. G
When upgrading scripts from picocli versions older than 4.0, just changing the version number is not enough!
-Scripts should use
@@ -18835,7 +18835,7 @@ @Grab('info.picocli:picocli-groovy:4.7.4')
. The old artifact id @Grab('info.picocli:picocli:4.7.4')
will not work,
+Scripts should use @Grab('info.picocli:picocli-groovy:4.7.5')
. The old artifact id @Grab('info.picocli:picocli:4.7.5')
will not work,
because the @picocli.groovy.PicocliScript
annotation class and supporting classes have been moved into a separate module, picocli-groovy
.
@Grab('info.picocli:picocli-groovy:4.7.4')
+
@Grab('info.picocli:picocli-groovy:4.7.5')
@GrabExclude('org.codehaus.groovy:groovy-all') // work around GROOVY-7613
...
37.1. Build too
+implementation 'info.picocli:picocli:4.7.4'
implementation 'info.picocli:picocli:4.7.5'
+implementation("info.picocli:picocli:4.7.4")
implementation("info.picocli:picocli:4.7.5")
+libraryDependencies += "info.picocli" % "picocli" % "4.7.4"
libraryDependencies += "info.picocli" % "picocli" % "4.7.5"
+<dependency org="info.picocli" name="picocli" rev="4.7.4" />
<dependency org="info.picocli" name="picocli" rev="4.7.5" />
@Grapes(
- @Grab(group='info.picocli', module='picocli', version='4.7.4')
+ @Grab(group='info.picocli', module='picocli', version='4.7.5')
)
+[info.picocli/picocli "4.7.4"]
[info.picocli/picocli "4.7.5"]
+'info.picocli:picocli:jar:4.7.4'
'info.picocli:picocli:jar:4.7.5'
+//DEPS info.picocli:picocli:4.7.4
//DEPS info.picocli:picocli:4.7.5
37.1. Build too
37.2. Source
CommandLine.java
, add it to your project, and enjoy!37.2. Source
diff --git a/docs/man/gen-manpage.html b/docs/man/gen-manpage.html
index b6c7a3bcc..c51ea0db6 100644
--- a/docs/man/gen-manpage.html
+++ b/docs/man/gen-manpage.html
@@ -579,7 +579,7 @@ Example
java -Duser.language=de -cp "myapp.jar;picocli-4.7.4.jar;picocli-codegen-4.7.4.jar" picocli.codegen.docgen.manpage.ManPageGenerator my.pkg.MyClass
+java -Duser.language=de -cp "myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar" picocli.codegen.docgen.manpage.ManPageGenerator my.pkg.MyClass
Example
diff --git a/docs/man/gen-proxy-config.html b/docs/man/gen-proxy-config.html
index 5fd0ddb06..8dbedc8a9 100644
--- a/docs/man/gen-proxy-config.html
+++ b/docs/man/gen-proxy-config.html
@@ -540,7 +540,7 @@ Example
java -cp "myapp.jar;picocli-4.7.4.jar;picocli-codegen-4.7.4.jar" picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator my.pkg.MyClass
+java -cp "myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar" picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator my.pkg.MyClass
Example
java -cp "myapp.jar;picocli-4.7.4.jar" \ +java -cp "myapp.jar;picocli-4.7.5.jar" \ picocli.AutoComplete my.pkg.MyClass
$ java -cp "myapp.jar;picocli-4.7.4.jar" ASCIIArt --font-size=9 Hello picocli +$ java -cp "myapp.jar;picocli-4.7.5.jar" ASCIIArt --font-size=9 Hello picocli # # # # # # # # # # # # # # *** # # **** #*** # **# **** **# # # @@ -2050,7 +2050,7 @@
Resolving two letter language codes-$ java -cp "myapp.jar;picocli-4.7.4.jar" ISOCodeResolver language de cs en sd se +$ java -cp "myapp.jar;picocli-4.7.5.jar" ISOCodeResolver language de cs en sd se de: German cs: Czech en: English @@ -2061,7 +2061,7 @@* * The {@link #convert(String)} method of this class always throws an UnsupportedOperationException. - * @since 4.7.5-SNAPSHOT + * @since 4.7.5 */ public static final class UseDefaultConverter implements ITypeConverter
Resolving two letter country codes-diff --git a/docs/zh/picocli-2.0-do-more-with-less.html b/docs/zh/picocli-2.0-do-more-with-less.html index d88e01ff1..30cf528cb 100644 --- a/docs/zh/picocli-2.0-do-more-with-less.html +++ b/docs/zh/picocli-2.0-do-more-with-less.html @@ -525,88 +525,88 @@ .CodeRay .change .change{color:#66f} .CodeRay .head .head{color:#f4f} - - - + + +$ java -cp "myapp.jar;picocli-4.7.4.jar" ISOCodeResolver country cn fr th ro no +$ java -cp "myapp.jar;picocli-4.7.5.jar" ISOCodeResolver country cn fr th ro no CN: China FR: France TH: Thailand @@ -3799,8 +3799,8 @@17. More
Picocli 2.0: 以少求多
-version 4.7.4 +version 4.7.5@@ -1002,7 +1002,7 @@diff --git a/docs/zh/picocli-2.0-groovy-scripts-on-steroids.html b/docs/zh/picocli-2.0-groovy-scripts-on-steroids.html index ee7047382..ffb7ba4d3 100644 --- a/docs/zh/picocli-2.0-groovy-scripts-on-steroids.html +++ b/docs/zh/picocli-2.0-groovy-scripts-on-steroids.html @@ -525,88 +525,88 @@ .CodeRay .change .change{color:#66f} .CodeRay .head .head{color:#f4f} - - - + + +结论
Picocli 2.0: Steroids上的Groovy脚本
-version 4.7.4 +version 4.7.5@@ -874,7 +874,7 @@diff --git a/picocli-codegen/README.adoc b/picocli-codegen/README.adoc index 9dbf4f1ad..f4491d30c 100644 --- a/picocli-codegen/README.adoc +++ b/picocli-codegen/README.adoc @@ -1,6 +1,6 @@ = Picocli Code Generation -:revnumber: 4.7.4 -:revdate: 2023-06-03 +:revnumber: 4.7.5 +:revdate: 2023-08-27 :toc: left :numbered: :toclevels: 4 @@ -76,7 +76,7 @@ This requires `maven-compiler-plugin` plugin version 3.5 or higher.总结
@@ -89,13 +89,13 @@ An alternative that works with older versions of the `maven-compiler-plugin` is info.picocli picocli-codegen -4.7.4 +4.7.5 info.picocli picocli -4.7.4 +4.7.5 ``` @@ -108,16 +108,16 @@ See < info.picocli picocli-codegen -4.7.4 +4.7.5 provided > below. Use the `annotationProcessor` path in Gradle https://docs.gradle.org/4.6/release-notes.html#convenient-declaration-of-annotation-processor-dependencies[4.6 and higher]: ```groovy dependencies { - implementation 'info.picocli:picocli:4.7.4' - annotationProcessor 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + annotationProcessor 'info.picocli:picocli-codegen:4.7.5' } ``` For Gradle versions prior to 4.6, use `compileOnly`, to prevent the `picocli-codegen` jar from being a transitive dependency included in the artifact the module produces. ```groovy dependencies { - implementation 'info.picocli:picocli:4.7.4' - compileOnly 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + compileOnly 'info.picocli:picocli-codegen:4.7.5' } ``` @@ -145,7 +145,7 @@ Add an execution of the `kapt` goal from `kotlin-maven-plugin` before `compile`: @@ -168,7 +168,7 @@ then replace `annotationProcessor` with `kapt`: apply plugin: 'kotlin-kapt' // required dependencies { // ... - kapt 'info.picocli:picocli-codegen:4.7.4' + kapt 'info.picocli:picocli-codegen:4.7.5' } ``` @@ -352,7 +352,7 @@ Note that the `picocli-codegen` module is only added as a dependency for the `ex info.picocli picocli-codegen -4.7.4 +4.7.5 @@ -373,8 +373,8 @@ configurations { generateConfig } dependencies { - implementation 'info.picocli:picocli:4.7.4' - generateConfig 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + generateConfig 'info.picocli:picocli-codegen:4.7.5' } ---- @@ -463,7 +463,7 @@ Note that the `picocli-codegen` module is only added as a dependency for the `ex info.picocli picocli-codegen -4.7.4 +4.7.5 jar @@ -483,8 +483,8 @@ configurations { generateConfig } dependencies { - implementation 'info.picocli:picocli:4.7.4' - generateConfig 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + generateConfig 'info.picocli:picocli-codegen:4.7.5' } ---- @@ -570,7 +570,7 @@ Note that the `picocli-codegen` module is only added as a dependency for the `ex info.picocli picocli-codegen -4.7.4 +4.7.5 jar @@ -590,8 +590,8 @@ configurations { generateConfig } dependencies { - implementation 'info.picocli:picocli:4.7.4' - generateConfig 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + generateConfig 'info.picocli:picocli-codegen:4.7.5' } ---- @@ -625,8 +625,8 @@ You will also need the https://asciidoctor.org/docs/asciidoctor-gradle-plugin/[A [source,groovy] ---- dependencies { - implementation "info.picocli:picocli:4.7.4" - annotationProcessor "info.picocli:picocli-codegen:4.7.4" + implementation "info.picocli:picocli:4.7.5" + annotationProcessor "info.picocli:picocli-codegen:4.7.5" } mainClassName = "my.pkg.MyCommand" @@ -700,7 +700,7 @@ Note that the `picocli-codegen` module is only added as a dependency for the `ex info.picocli picocli-codegen -4.7.4 +4.7.5 jar diff --git a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/DynamicProxyConfigGenerator.java b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/DynamicProxyConfigGenerator.java index cba40c510..440bf3688 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/DynamicProxyConfigGenerator.java +++ b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/DynamicProxyConfigGenerator.java @@ -58,7 +58,7 @@ public class DynamicProxyConfigGenerator { }, footerHeading = "%nExample%n", footer = { - " java -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar;picocli-codegen-4.7.5-SNAPSHOT.jar\" " + + " java -cp \"myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar\" " + "picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator my.pkg.MyClass" }, mixinStandardHelpOptions = true, version = "picocli-codegen gen-proxy-config " + CommandLine.VERSION) diff --git a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/JniConfigGenerator.java b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/JniConfigGenerator.java index ec2de6b00..a99404a8b 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/JniConfigGenerator.java +++ b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/JniConfigGenerator.java @@ -31,7 +31,7 @@ public class JniConfigGenerator { }, footerHeading = "%nExample%n", footer = { - " java -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar;picocli-codegen-4.7.5-SNAPSHOT.jar\" " + + " java -cp \"myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar\" " + "picocli.codegen.aot.graalvm.JniConfigGenerator my.pkg.MyClass" }, mixinStandardHelpOptions = true, sortOptions = false, diff --git a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ReflectionConfigGenerator.java b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ReflectionConfigGenerator.java index b2c8f730e..eae0852bc 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ReflectionConfigGenerator.java +++ b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ReflectionConfigGenerator.java @@ -95,7 +95,7 @@ public class ReflectionConfigGenerator { }, footerHeading = "%nExample%n", footer = { - " java -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar;picocli-codegen-4.7.5-SNAPSHOT.jar\" " + + " java -cp \"myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar\" " + "picocli.codegen.aot.graalvm.ReflectionConfigGenerator my.pkg.MyClass" }, mixinStandardHelpOptions = true, sortOptions = false, diff --git a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ResourceConfigGenerator.java b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ResourceConfigGenerator.java index a93f1bdd8..513f2e1b7 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ResourceConfigGenerator.java +++ b/picocli-codegen/src/main/java/picocli/codegen/aot/graalvm/ResourceConfigGenerator.java @@ -54,7 +54,7 @@ public class ResourceConfigGenerator { }, footerHeading = "%nExample%n", footer = { - " java -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar;picocli-codegen-4.7.5-SNAPSHOT.jar\" " + + " java -cp \"myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar\" " + "picocli.codegen.aot.graalvm.ResourceConfigGenerator my.pkg.MyClass" }, mixinStandardHelpOptions = true, version = "picocli-codegen gen-resource-config " + CommandLine.VERSION) diff --git a/picocli-codegen/src/main/java/picocli/codegen/docgen/manpage/ManPageGenerator.java b/picocli-codegen/src/main/java/picocli/codegen/docgen/manpage/ManPageGenerator.java index b0fcf616b..6c440c7fb 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/docgen/manpage/ManPageGenerator.java +++ b/picocli-codegen/src/main/java/picocli/codegen/docgen/manpage/ManPageGenerator.java @@ -190,7 +190,7 @@ private void verboseDetailed(String message, Object... params) { "", "Example", "-------", - " java -Duser.language=de -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar;picocli-codegen-4.7.5-SNAPSHOT.jar\" " + + " java -Duser.language=de -cp \"myapp.jar;picocli-4.7.5.jar;picocli-codegen-4.7.5.jar\" " + "picocli.codegen.docgen.manpage.ManPageGenerator my.pkg.MyClass" } ) diff --git a/picocli-examples/annotation-processing/example-gradle-project-kotlin-graal-nativeimage/build.gradle b/picocli-examples/annotation-processing/example-gradle-project-kotlin-graal-nativeimage/build.gradle index 297aa1e05..6389b4d95 100644 --- a/picocli-examples/annotation-processing/example-gradle-project-kotlin-graal-nativeimage/build.gradle +++ b/picocli-examples/annotation-processing/example-gradle-project-kotlin-graal-nativeimage/build.gradle @@ -76,8 +76,8 @@ configurations { generateConfig } dependencies { - implementation 'info.picocli:picocli:4.7.4' - generateConfig 'info.picocli:picocli-codegen:4.7.4' + implementation 'info.picocli:picocli:4.7.5' + generateConfig 'info.picocli:picocli-codegen:4.7.5' } task(generateGraalReflectionConfig, dependsOn: 'classes', type: JavaExec) { diff --git a/picocli-examples/annotation-processing/example-gradle-project/build.gradle b/picocli-examples/annotation-processing/example-gradle-project/build.gradle index 152a7392e..c69dace15 100644 --- a/picocli-examples/annotation-processing/example-gradle-project/build.gradle +++ b/picocli-examples/annotation-processing/example-gradle-project/build.gradle @@ -17,9 +17,9 @@ dependencies { testImplementation group: 'junit', name: 'junit', version: '4.13.1' } dependencies { - implementation 'info.picocli:picocli:4.7.4' - annotationProcessor 'info.picocli:picocli-codegen:4.7.4' - //compileOnly 'info.picocli:picocli-codegen:4.7.4' // in pre-Gradle 4.6 + implementation 'info.picocli:picocli:4.7.5' + annotationProcessor 'info.picocli:picocli-codegen:4.7.5' + //compileOnly 'info.picocli:picocli-codegen:4.7.5' // in pre-Gradle 4.6 } compileJava { // minimum 1.6 diff --git a/picocli-examples/annotation-processing/example-maven-project-shading/pom.xml b/picocli-examples/annotation-processing/example-maven-project-shading/pom.xml index cc886515c..e1d38e3fb 100644 --- a/picocli-examples/annotation-processing/example-maven-project-shading/pom.xml +++ b/picocli-examples/annotation-processing/example-maven-project-shading/pom.xml @@ -22,7 +22,7 @@ info.picocli picocli-codegen -4.7.4 +4.7.5 jar info.picocli picocli-codegen -4.7.4 +4.7.5 @@ -80,7 +80,7 @@ diff --git a/picocli-examples/annotation-processing/example-maven-project-simple/pom.xml b/picocli-examples/annotation-processing/example-maven-project-simple/pom.xml index 7d37ba5a2..162f64b5b 100644 --- a/picocli-examples/annotation-processing/example-maven-project-simple/pom.xml +++ b/picocli-examples/annotation-processing/example-maven-project-simple/pom.xml @@ -56,12 +56,12 @@ info.picocli picocli -4.7.4 +4.7.5 info.picocli picocli -4.7.4 +4.7.5 diff --git a/picocli-examples/generate-man-pages/example-gradle-project/build.gradle b/picocli-examples/generate-man-pages/example-gradle-project/build.gradle index 3643012bf..c9599e812 100644 --- a/picocli-examples/generate-man-pages/example-gradle-project/build.gradle +++ b/picocli-examples/generate-man-pages/example-gradle-project/build.gradle @@ -33,8 +33,8 @@ dependencies { testImplementation group: 'junit', name: 'junit', version: '4.13.1' } dependencies { - implementation "info.picocli:picocli:4.7.4" - annotationProcessor "info.picocli:picocli-codegen:4.7.4" + implementation "info.picocli:picocli:4.7.5" + annotationProcessor "info.picocli:picocli-codegen:4.7.5" } project.ext { diff --git a/picocli-examples/generate-man-pages/example-maven-project/pom.xml b/picocli-examples/generate-man-pages/example-maven-project/pom.xml index b23867d4f..5935bc545 100644 --- a/picocli-examples/generate-man-pages/example-maven-project/pom.xml +++ b/picocli-examples/generate-man-pages/example-maven-project/pom.xml @@ -59,7 +59,7 @@ info.picocli picocli-codegen -4.7.4 +4.7.5 provided @@ -117,12 +117,12 @@ info.picocli picocli-codegen -4.7.4 +4.7.5 jar info.picocli picocli -4.7.4 +4.7.5 diff --git a/picocli-groovy/README.md b/picocli-groovy/README.md index 091ad3400..689d6f629 100644 --- a/picocli-groovy/README.md +++ b/picocli-groovy/README.md @@ -12,7 +12,7 @@ This module was introduced in picocli 4.0; in previous versions these classes we ## Example ```groovy -@Grab('info.picocli:picocli-groovy:4.7.4') +@Grab('info.picocli:picocli-groovy:4.7.5') @Command(description = "Print a checksum of each specified FILE.", mixinStandardHelpOptions = true, version = 'checksum v1.2.3', diff --git a/picocli-shell-jline2/README.md b/picocli-shell-jline2/README.md index d9ceeaaef..7b1b1ea17 100644 --- a/picocli-shell-jline2/README.md +++ b/picocli-shell-jline2/README.md @@ -37,7 +37,7 @@ get command line TAB auto-completion for a picocli-based application running in info.picocli picocli-codegen -4.7.4 +4.7.5 provided ``` diff --git a/picocli-shell-jline3/README.md b/picocli-shell-jline3/README.md index 2d9dd0cb4..f108e61c2 100644 --- a/picocli-shell-jline3/README.md +++ b/picocli-shell-jline3/README.md @@ -75,7 +75,7 @@ JLine [Wiki](https://github.com/jline/jline3/wiki) and some more [Demos](https:/ info.picocli picocli-shell-jline2 -4.7.4 +4.7.5 ``` diff --git a/picocli-spring-boot-starter/README.md b/picocli-spring-boot-starter/README.md index 5057bcbc8..c44f4790b 100644 --- a/picocli-spring-boot-starter/README.md +++ b/picocli-spring-boot-starter/README.md @@ -13,7 +13,7 @@ command line applications with Spring and picocli. ## Dependency Management -Picocli 4.7.4 has been tested with Spring Boot 2.5, 2.6, 2.7, and 3.1 up to 3.1.2. +Picocli 4.7.5 has been tested with Spring Boot 2.5, 2.6, 2.7, and 3.1 up to 3.1.2. Add the following dependency: @@ -22,14 +22,14 @@ Maven: info.picocli picocli-shell-jline3 -4.7.4 +4.7.5 ``` Gradle: ``` dependencies { - implementation "info.picocli:picocli-spring-boot-starter:4.7.4" + implementation "info.picocli:picocli-spring-boot-starter:4.7.5" } ``` diff --git a/src/main/java/picocli/AutoComplete.java b/src/main/java/picocli/AutoComplete.java index 17fe51258..93b720565 100644 --- a/src/main/java/picocli/AutoComplete.java +++ b/src/main/java/picocli/AutoComplete.java @@ -116,7 +116,7 @@ private static boolean syspropDefinedAndNotFalse(String key) { "", "Example", "-------", - " java -cp \"myapp.jar;picocli-4.7.5-SNAPSHOT.jar\" \\", + " java -cp \"myapp.jar;picocli-4.7.5.jar\" \\", " picocli.AutoComplete my.pkg.MyClass" }, exitCodeListHeading = "%nExit Codes:%n", diff --git a/src/main/java/picocli/CommandLine.java b/src/main/java/picocli/CommandLine.java index 53cbd4a94..0314cbb3c 100644 --- a/src/main/java/picocli/CommandLine.java +++ b/src/main/java/picocli/CommandLine.java @@ -148,7 +148,7 @@ public class CommandLine { /** This is picocli version {@value}. */ - public static final String VERSION = "4.7.5-SNAPSHOT"; + public static final String VERSION = "4.7.5"; private static final Tracer TRACER = new Tracer(); private CommandSpec commandSpec; @@ -979,7 +979,7 @@ public CommandLine setStopAtUnmatched(boolean newValue) { * or whether such values should be rejected with a missing parameter exception. * The default is {@code false}, so by default input like {@code -x=subcommand} is rejected if {@code -x} is an option that takes a String parameter, and {@code subcommand} is a subcommand of this command. * @return {@code true} when options can have parameter values that match subcommand names or aliases, {@code false} when such values should be rejected with a missing parameter exception - * @since 4.7.5-SNAPSHOT + * @since 4.7.5 * @see ParserSpec#allowSubcommandsAsOptionParameters() */ public boolean isAllowSubcommandsAsOptionParameters() { @@ -994,7 +994,7 @@ public boolean isAllowSubcommandsAsOptionParameters() { * subcommands, call the setter last, after adding subcommands. * @param newValue the new setting. When {@code true}, options can have parameter values that match subcommand names or aliases, when {@code false}, such values are rejected with a missing parameter exception * @return this {@code CommandLine} object, to allow method chaining - * @since 4.7.5-SNAPSHOT + * @since 4.7.5 * @see ParserSpec#allowSubcommandsAsOptionParameters(boolean) */ public CommandLine setAllowSubcommandsAsOptionParameters(boolean newValue) { @@ -1009,7 +1009,7 @@ public CommandLine setAllowSubcommandsAsOptionParameters(boolean newValue) { * The default is {@code false}, so by default input like {@code -x=--some-option} is rejected if {@code -x} is an option that takes a String parameter, and {@code --some-option} is an option of this command. * info.picocli picocli-spring-boot-starter -4.7.4 +4.7.5 This method only considers actual options of this command, as opposed to {@link #isUnmatchedOptionsAllowedAsOptionParameters()}, which considers values that resemble options.
* @return {@code true} when options can have parameter values that match the name of an option in this command, {@code false} when such values should be rejected with a missing parameter exception - * @since 4.7.5-SNAPSHOT + * @since 4.7.5 * @see #isUnmatchedOptionsAllowedAsOptionParameters() * @see ParserSpec#allowOptionsAsOptionParameters() */ @@ -1029,7 +1029,7 @@ public boolean isAllowOptionsAsOptionParameters() { * subcommands, call the setter last, after adding subcommands. * @param newValue the new setting. When {@code true}, options can have parameter values that match the name of an option in this command, when {@code false}, such values are rejected with a missing parameter exception * @return this {@code CommandLine} object, to allow method chaining - * @since 4.7.5-SNAPSHOT + * @since 4.7.5 * @see #setUnmatchedOptionsAllowedAsOptionParameters(boolean) * @see ParserSpec#allowOptionsAsOptionParameters(boolean) */ @@ -4737,7 +4737,7 @@ enum Target { * Note that picocli cannot reliably detect declaration order in commands that have both {@code @Option}-annotated methods and {@code @Option}-annotated fields. * The default ({@code true}) is to sort alphabetically. * @return whether options in the synopsis should be shown in alphabetic order. - * @since 4.7.5-SNAPSHOT */ + * @since 4.7.5 */ boolean sortSynopsis() default true; /** Prefix required options with this character in the options list. The default is no marker: the synopsis @@ -5033,7 +5033,7 @@ public interface IVersionProvider { *