mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Ensure Maven plugin descriptor inputs are out-of-date on version change
Closes gh-22766
This commit is contained in:
parent
4924573074
commit
d064ccabc4
@ -177,6 +177,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
|
||||
pluginDescriptorInputs.from(pomFile, (copy) -> replaceVersionPlaceholder(copy, project));
|
||||
pluginDescriptorInputs.from(sourceSet.getOutput().getClassesDirs(), (sync) -> sync.into("target/classes"));
|
||||
pluginDescriptorInputs.from(sourceSet.getAllJava().getSrcDirs(), (sync) -> sync.into("src/main/java"));
|
||||
pluginDescriptorInputs.getInputs().property("version", project.getVersion());
|
||||
return pluginDescriptorInputs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user