parent
a7f2be8b14
commit
b073ef0310
|
@ -97,8 +97,18 @@ public class BuildInfoMojo extends AbstractMojo {
|
||||||
@Parameter
|
@Parameter
|
||||||
private List<String> excludeInfoProperties;
|
private List<String> excludeInfoProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Skip the execution.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "spring-boot.build-info.skip", defaultValue = "false")
|
||||||
|
private boolean skip;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() throws MojoExecutionException, MojoFailureException {
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
||||||
|
if (this.skip) {
|
||||||
|
getLog().debug("skipping build-info as per configuration.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
ProjectDetails details = getProjectDetails();
|
ProjectDetails details = getProjectDetails();
|
||||||
new BuildPropertiesWriter(this.outputFile).writeBuildProperties(details);
|
new BuildPropertiesWriter(this.outputFile).writeBuildProperties(details);
|
||||||
|
|
Loading…
Reference in New Issue