Skip to content

Commit ffab339

Browse files
dmitry-timofeevremkop
authored andcommitted
Use ${project.groupId} instead of deprecated ${groupId}
${groupId} and ${artifactId} are deprecated and cause the following warning: [WARNING] The expression ${groupId} is deprecated. Please use ${project.groupId} instead. [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
1 parent cf888c5 commit ffab339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ In most cases no further configuration is needed when generating a native image.
137137

138138
==== Processor option: `project`
139139

140-
The picocli annotation processor supports a number of https://github.com/remkop/picocli/tree/master/picocli-codegen#picocli-processor-options[options], most important of which is the `project` option to control the output subdirectory: the generated files are written to `META-INF/native-image/picocli-generated/${project}`. A good convention is to use the Maven `${groupId}/${artifactId}` as the value; a unique subdirectory ensures your jar can be shaded with other jars that may also contain generated configuration files.
140+
The picocli annotation processor supports a number of https://github.com/remkop/picocli/tree/master/picocli-codegen#picocli-processor-options[options], most important of which is the `project` option to control the output subdirectory: the generated files are written to `META-INF/native-image/picocli-generated/${project}`. A good convention is to use the Maven `${project.groupId}/${project.artifactId}` as the value; a unique subdirectory ensures your jar can be shaded with other jars that may also contain generated configuration files.
141141

142142
To configure this option, pass the `-Aproject=<some value>` to the javac compiler. The examples below show how to do this for Maven and Gradle.
143143

@@ -162,7 +162,7 @@ https://immutables.github.io/apt.html[This page] shows the steps to configure Ec
162162
</path>
163163
</annotationProcessorPaths>
164164
<compilerArgs>
165-
<arg>-Aproject=${groupId}/${artifactId}</arg>
165+
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
166166
</compilerArgs>
167167
</configuration>
168168
</plugin>

0 commit comments

Comments
 (0)