From f43f876459c1f2204e9f1070be807afc153e04de Mon Sep 17 00:00:00 2001 From: jvwilge Date: Thu, 2 May 2019 08:43:50 +0200 Subject: [PATCH] Make excludeDevtools available as a user property Add Maven user property spring-boot.excludeDevtools so it can be used from the command line. See #16694 --- .../main/java/org/springframework/boot/maven/RepackageMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java index 6c4ee22d9624..3cd9f140e183 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java @@ -186,7 +186,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo { * Exclude Spring Boot devtools from the repackaged archive. * @since 1.3 */ - @Parameter(defaultValue = "true") + @Parameter(property = "spring-boot.excludeDevtools", defaultValue = "true") private boolean excludeDevtools = true; /**