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
This commit is contained in:
Stephane Nicoll 2016-10-17 17:52:12 +03:00
parent 57108a9faa
commit 6186262ecc
4 changed files with 8 additions and 8 deletions

View File

@ -400,7 +400,7 @@ want the other Boot features but not this one)
|`excludeDevtools`
|Boolean flag to indicate if the devtools jar should be excluded from the repackaged
archives. Defaults to `false`.
archives. Defaults to `true`.
|===

View File

@ -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
{propdeps-plugin}[`propdeps-plugin`] in the meantime.
TIP: If you want to ensure that devtools is never included in a production build, you can
use the `excludeDevtools` build property to completely remove the JAR. The property is
supported with both the Maven and Gradle plugins.
TIP: repackaged archives do not contain devtools by default. If you want to use certain
remote devtools feature, you'll need to enable the `excludeDevtools` build property to
include it. The property is supported with both the Maven and Gradle plugins.

View File

@ -99,7 +99,7 @@ public class SpringBootPluginExtension {
/**
* 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

View File

@ -167,11 +167,11 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
private Properties embeddedLaunchScriptProperties;
/**
* Exclude Spring Boot devtools.
* Exclude Spring Boot devtools from the repackaged archive.
* @since 1.3
*/
@Parameter(defaultValue = "false")
private boolean excludeDevtools;
@Parameter(defaultValue = "true")
private boolean excludeDevtools = true;
/**
* Include system scoped dependencies.