Skip to content

Commit 4c1ef63

Browse files
committed
Restore lazy evaluation of project/build/finalName
This commit restores the read-only `finalName` so that its value can be lazily resolved against `${project.build.finalName}`. While doing the evaluation ourselves and not relying on a dedicated field at all would have been better, the evaluation increased the number of required dependencies for no good reason. IDEs should not offer auto-completion for that read-only field and it is not published in the generated site either. Closes gh-16456
1 parent 00b2954 commit 4c1ef63

File tree

1 file changed

+1
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ private File getTargetFile() {
266266
if (!this.outputDirectory.exists()) {
267267
this.outputDirectory.mkdirs();
268268
}
269-
String finalName = this.project.getBuild().getFinalName();
270-
return new File(this.outputDirectory, finalName + classifier + "."
269+
return new File(this.outputDirectory, this.finalName + classifier + "."
271270
+ this.project.getArtifact().getArtifactHandler().getExtension());
272271
}
273272

0 commit comments

Comments
 (0)