Change the embedded script default to disabled

Update the Maven and Gradle repackage tasks so that the embedded
startup script is no longer included by default. This change is
primarily due to the `cf` command line not currently accepting
the unusual jar format.

Fixes gh-3045
This commit is contained in:
Phillip Webb
2015-06-04 21:57:43 -07:00
parent 83300b35bf
commit 316b07d3b9
8 changed files with 162 additions and 43 deletions

View File

@@ -137,7 +137,7 @@ public class SpringBootPluginExtension {
* If a fully executable jar (for *nix machines) should be generated by prepending a
* launch script to the jar.
*/
boolean executable = true;
boolean executable = false;
/**
* The embedded launch script to prepend to the front of the jar if it is fully

View File

@@ -210,7 +210,8 @@ public class RepackageTask extends DefaultTask {
}
private LaunchScript getLaunchScript() throws IOException {
if (this.extension.isExecutable()) {
if (this.extension.isExecutable()
|| extension.getEmbeddedLaunchScript() != null) {
return new DefaultLaunchScript(this.extension.getEmbeddedLaunchScript(),
this.extension.getEmbeddedLaunchScriptProperties());
}