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:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user