File tree Expand file tree Collapse file tree 5 files changed +4
-272
lines changed
groovy/com/github/jengelman/gradle/plugins/shadow
resources/com/github/jengelman/gradle/plugins/shadow/internal
test/groovy/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 5 files changed +4
-272
lines changed Original file line number Diff line number Diff line change 3
3
4
4
## [ Unreleased]
5
5
6
+ ** Changed**
7
+
8
+ - Stop using start script templates bundled in Shadow. ([ #1750 ] ( https://github.com/GradleUp/shadow/pull/1750 ) )
9
+
6
10
** Fixed**
7
11
8
12
- Fix resolving BOM dependencies when ` minimize ` is enabled. ([ #1638 ] ( https://github.com/GradleUp/shadow/pull/1638 ) )
Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ class ShadowApplicationPlugin implements Plugin<Project> {
79
79
80
80
protected void addCreateScriptsTask (Project project ) {
81
81
project. tasks. register(SHADOW_SCRIPTS_TASK_NAME , CreateStartScripts ) { startScripts ->
82
- startScripts. unixStartScriptGenerator. template = project. resources. text. fromString(this . class. getResource(" internal/unixStartScript.txt" ). text)
83
- startScripts. windowsStartScriptGenerator. template = project. resources. text. fromString(this . class. getResource(" internal/windowsStartScript.txt" ). text)
84
82
startScripts. description = ' Creates OS specific scripts to run the project as a JVM application using the shadow jar'
85
83
startScripts. group = ApplicationPlugin . APPLICATION_GROUP
86
84
startScripts. classpath = project. files(jar)
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ class ApplicationSpec extends PluginSpecification {
66
66
File startScript = getFile(' build/install/myapp-shadow/bin/myapp' )
67
67
assert startScript. exists()
68
68
assert startScript. text. contains(" CLASSPATH=\$ APP_HOME/lib/myapp-1.0-all.jar" )
69
- assert startScript. text. contains(" -jar \"\\\"\$ CLASSPATH\\\"\" \"\$ APP_ARGS\" " )
70
69
assert startScript. text. contains(" exec \"\$ JAVACMD\" \"\$ @\" " )
71
70
72
71
cleanup :
@@ -146,7 +145,6 @@ class ApplicationSpec extends PluginSpecification {
146
145
File startScript = getFile(' build/install/myapp-shadow/bin/myapp' )
147
146
assert startScript. exists()
148
147
assert startScript. text. contains(" CLASSPATH=\$ APP_HOME/lib/myapp-1.0-all.jar" )
149
- assert startScript. text. contains(" -jar \"\\\"\$ CLASSPATH\\\"\" \"\$ APP_ARGS\" " )
150
148
assert startScript. text. contains(" exec \"\$ JAVACMD\" \"\$ @\" " )
151
149
152
150
cleanup :
You can’t perform that action at this time.
0 commit comments