Ensure Maven plugin descriptor inputs are out-of-date on version change
Closes gh-22766
This commit is contained in:
parent
11d1002f15
commit
a495b83b25
|
|
@ -177,6 +177,7 @@ public class MavenPluginPlugin implements Plugin<Project> {
|
||||||
pluginDescriptorInputs.from(pomFile, (copy) -> replaceVersionPlaceholder(copy, project));
|
pluginDescriptorInputs.from(pomFile, (copy) -> replaceVersionPlaceholder(copy, project));
|
||||||
pluginDescriptorInputs.from(sourceSet.getOutput().getClassesDirs(), (sync) -> sync.into("target/classes"));
|
pluginDescriptorInputs.from(sourceSet.getOutput().getClassesDirs(), (sync) -> sync.into("target/classes"));
|
||||||
pluginDescriptorInputs.from(sourceSet.getAllJava().getSrcDirs(), (sync) -> sync.into("src/main/java"));
|
pluginDescriptorInputs.from(sourceSet.getAllJava().getSrcDirs(), (sync) -> sync.into("src/main/java"));
|
||||||
|
pluginDescriptorInputs.getInputs().property("version", project.getVersion());
|
||||||
return pluginDescriptorInputs;
|
return pluginDescriptorInputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue