Skip to content

Commit d064cca

Browse files
committed
Ensure Maven plugin descriptor inputs are out-of-date on version change
Closes gh-22766
1 parent 4924573 commit d064cca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/MavenPluginPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ private Copy createCopyPluginDescriptorInputs(Project project, File destination,
177177
pluginDescriptorInputs.from(pomFile, (copy) -> replaceVersionPlaceholder(copy, project));
178178
pluginDescriptorInputs.from(sourceSet.getOutput().getClassesDirs(), (sync) -> sync.into("target/classes"));
179179
pluginDescriptorInputs.from(sourceSet.getAllJava().getSrcDirs(), (sync) -> sync.into("src/main/java"));
180+
pluginDescriptorInputs.getInputs().property("version", project.getVersion());
180181
return pluginDescriptorInputs;
181182
}
182183

0 commit comments

Comments
 (0)