Commit 6186262e authored by Stephane Nicoll's avatar Stephane Nicoll

Switch `excludeDevtools` to true by default

Switch the default value of `excludeDevtools` from `false` to `true` as
it is more sensible to exclude such dependency by default.

Closes gh-7170
parent 57108a9f
...@@ -400,7 +400,7 @@ want the other Boot features but not this one) ...@@ -400,7 +400,7 @@ want the other Boot features but not this one)
|`excludeDevtools` |`excludeDevtools`
|Boolean flag to indicate if the devtools jar should be excluded from the repackaged |Boolean flag to indicate if the devtools jar should be excluded from the repackaged
archives. Defaults to `false`. archives. Defaults to `true`.
|=== |===
......
...@@ -768,9 +768,9 @@ applied to other modules using your project. Gradle does not support `optional` ...@@ -768,9 +768,9 @@ applied to other modules using your project. Gradle does not support `optional`
dependencies out-of-the-box so you may want to have a look to the dependencies out-of-the-box so you may want to have a look to the
{propdeps-plugin}[`propdeps-plugin`] in the meantime. {propdeps-plugin}[`propdeps-plugin`] in the meantime.
TIP: If you want to ensure that devtools is never included in a production build, you can TIP: repackaged archives do not contain devtools by default. If you want to use certain
use the `excludeDevtools` build property to completely remove the JAR. The property is remote devtools feature, you'll need to enable the `excludeDevtools` build property to
supported with both the Maven and Gradle plugins. include it. The property is supported with both the Maven and Gradle plugins.
......
...@@ -99,7 +99,7 @@ public class SpringBootPluginExtension { ...@@ -99,7 +99,7 @@ public class SpringBootPluginExtension {
/** /**
* Whether Spring Boot Devtools should be excluded from the fat jar. * Whether Spring Boot Devtools should be excluded from the fat jar.
*/ */
boolean excludeDevtools = false; boolean excludeDevtools = true;
/** /**
* Location of an agent jar to attach to the VM when running the application with * Location of an agent jar to attach to the VM when running the application with
......
...@@ -167,11 +167,11 @@ public class RepackageMojo extends AbstractDependencyFilterMojo { ...@@ -167,11 +167,11 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
private Properties embeddedLaunchScriptProperties; private Properties embeddedLaunchScriptProperties;
/** /**
* Exclude Spring Boot devtools. * Exclude Spring Boot devtools from the repackaged archive.
* @since 1.3 * @since 1.3
*/ */
@Parameter(defaultValue = "false") @Parameter(defaultValue = "true")
private boolean excludeDevtools; private boolean excludeDevtools = true;
/** /**
* Include system scoped dependencies. * Include system scoped dependencies.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment