Skip to content

Commit 301cc7c

Browse files
committed
Merge branch 'release-1.3.1'
2 parents 4bd4982 + 06720a3 commit 301cc7c

12 files changed

Lines changed: 86 additions & 24 deletions

pom.xml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>be.nbb.rd</groupId>
77
<artifactId>java-console-properties</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99

1010
<packaging>jar</packaging>
1111

@@ -47,12 +47,16 @@
4747
<artifactId>java-design-processor</artifactId>
4848
<scope>provided</scope>
4949
</dependency>
50+
<dependency>
51+
<groupId>info.picocli</groupId>
52+
<artifactId>picocli-codegen</artifactId>
53+
<scope>provided</scope>
54+
</dependency>
5055

5156
<!-- compile and runtime -->
5257
<dependency>
5358
<groupId>info.picocli</groupId>
5459
<artifactId>picocli</artifactId>
55-
<version>4.6.1</version>
5660
<optional>true</optional>
5761
</dependency>
5862
<dependency>
@@ -64,7 +68,7 @@
6468
<dependency>
6569
<groupId>be.nbb.rd</groupId>
6670
<artifactId>java-io-win</artifactId>
67-
<version>0.0.10</version>
71+
<version>0.0.11</version>
6872
<optional>true</optional>
6973
</dependency>
7074
<dependency>
@@ -84,7 +88,7 @@
8488
<dependency>
8589
<groupId>org.assertj</groupId>
8690
<artifactId>assertj-core</artifactId>
87-
<version>3.18.1</version>
91+
<version>3.19.0</version>
8892
<scope>test</scope>
8993
</dependency>
9094
<dependency>
@@ -143,6 +147,7 @@
143147
<lombok.version>1.18.16</lombok.version>
144148
<java-service.version>1.3.0</java-service.version>
145149
<java-design.version>1.1.2</java-design.version>
150+
<picocli.version>4.6.1</picocli.version>
146151
</properties>
147152
<dependencyManagement>
148153
<dependencies>
@@ -171,6 +176,16 @@
171176
<artifactId>java-design-processor</artifactId>
172177
<version>${java-design.version}</version>
173178
</dependency>
179+
<dependency>
180+
<groupId>info.picocli</groupId>
181+
<artifactId>picocli</artifactId>
182+
<version>${picocli.version}</version>
183+
</dependency>
184+
<dependency>
185+
<groupId>info.picocli</groupId>
186+
<artifactId>picocli-codegen</artifactId>
187+
<version>${picocli.version}</version>
188+
</dependency>
174189
</dependencies>
175190
</dependencyManagement>
176191
<build>
@@ -195,7 +210,16 @@
195210
<artifactId>java-design-processor</artifactId>
196211
<version>${java-design.version}</version>
197212
</path>
213+
<path>
214+
<groupId>info.picocli</groupId>
215+
<artifactId>picocli-codegen</artifactId>
216+
<version>${picocli.version}</version>
217+
</path>
198218
</annotationProcessorPaths>
219+
<compilerArgs>
220+
<!-- picocli-codegen option -->
221+
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
222+
</compilerArgs>
199223
</configuration>
200224
</plugin>
201225
</plugins>

src/main/java/nbbrd/console/picocli/GenerateLauncher.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
@CommandLine.Command(
2020
name = "generate-launcher",
21-
mixinStandardHelpOptions = true,
2221
description = {"Generate launcher script for ${ROOT-COMMAND-NAME:-the root command of this command}."},
23-
optionListHeading = "Options:%n",
2422
helpCommand = true
2523
)
2624
public class GenerateLauncher implements Callable<Void>, TextOutput {

src/main/java/nbbrd/console/picocli/MultiFileInputOptions.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*
22
* Copyright 2020 National Bank of Belgium
3-
*
4-
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved
3+
*
4+
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved
55
* by the European Commission - subsequent versions of the EUPL (the "Licence");
66
* You may not use this work except in compliance with the Licence.
77
* You may obtain a copy of the Licence at:
8-
*
8+
*
99
* http://ec.europa.eu/idabc/eupl
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the Licence is distributed on an "AS IS" basis,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the Licence for the specific language governing permissions and
14+
* See the Licence for the specific language governing permissions and
1515
* limitations under the Licence.
1616
*/
1717
package nbbrd.console.picocli;
@@ -22,10 +22,10 @@
2222
import java.util.List;
2323

2424
/**
25-
*
2625
* @author Philippe Charles
2726
*/
28-
@lombok.Data
27+
@lombok.Getter
28+
@lombok.Setter
2929
public class MultiFileInputOptions implements MultiFileInput, Profilable {
3030

3131
@CommandLine.Parameters(

src/main/java/nbbrd/console/picocli/PrintContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
*/
3131
@CommandLine.Command(
3232
name = "print-context",
33-
mixinStandardHelpOptions = true,
3433
description = {"Print system and environment context."},
35-
optionListHeading = "Options:%n",
3634
helpCommand = true
3735
)
3836
public class PrintContext implements Callable<Void> {

src/main/java/nbbrd/console/picocli/ProfileOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import picocli.CommandLine;
44

5-
@lombok.Data
5+
@lombok.Getter
6+
@lombok.Setter
67
public class ProfileOptions implements Profile {
78

89
@CommandLine.Option(

src/main/java/nbbrd/console/picocli/csv/CsvInputOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import nbbrd.picocsv.Csv;
66
import picocli.CommandLine;
77

8-
@lombok.Data
8+
@lombok.Getter
9+
@lombok.Setter
910
public class CsvInputOptions extends TextInputOptions implements CsvInput, Profilable {
1011

1112
@CommandLine.Option(

src/main/java/nbbrd/console/picocli/csv/CsvOutputOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import nbbrd.picocsv.Csv;
66
import picocli.CommandLine;
77

8-
@lombok.Data
8+
@lombok.Getter
9+
@lombok.Setter
910
public class CsvOutputOptions extends TextOutputOptions implements CsvOutput, Profilable {
1011

1112
@CommandLine.Option(

src/main/java/nbbrd/console/picocli/text/ObsFormatOptions.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
/**
2626
* @author Philippe Charles
2727
*/
28-
@lombok.Data
28+
@lombok.Getter
29+
@lombok.Setter
2930
public class ObsFormatOptions implements ObsFormat, Profilable {
3031

3132
@CommandLine.Option(
@@ -48,7 +49,7 @@ public class ObsFormatOptions implements ObsFormat, Profilable {
4849
@CommandLine.Option(
4950
names = {"-S", "--datetime"},
5051
paramLabel = "<pattern>",
51-
defaultValue = "yyyy-MM-ddTHH:mm:ss",
52+
defaultValue = "yyyy-MM-dd'T'HH:mm:ss",
5253
description = "Pattern used to format dates and times."
5354
)
5455
private String datetimePattern;

src/main/java/nbbrd/console/picocli/text/TextInputOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
import static java.nio.charset.StandardCharsets.UTF_8;
1313

14-
@lombok.Data
14+
@lombok.Getter
15+
@lombok.Setter
1516
public class TextInputOptions implements TextInput, Profilable {
1617

1718
@CommandLine.Option(

src/main/java/nbbrd/console/picocli/text/TextOutputOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
import static java.nio.charset.StandardCharsets.UTF_8;
1313

14-
@lombok.Data
14+
@lombok.Getter
15+
@lombok.Setter
1516
public class TextOutputOptions implements TextOutput, Profilable {
1617

1718
@CommandLine.Option(

0 commit comments

Comments
 (0)