File tree Expand file tree Collapse file tree
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 Original file line number Diff line number Diff line change 33
44## [ Unreleased]
55
6+ ** Changed**
7+
8+ - Stop using start script templates bundled in Shadow. ([ #1750 ] ( https://github.com/GradleUp/shadow/pull/1750 ) )
9+
610** Fixed**
711
812- 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> {
7979
8080 protected void addCreateScriptsTask (Project project ) {
8181 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)
8482 startScripts. description = ' Creates OS specific scripts to run the project as a JVM application using the shadow jar'
8583 startScripts. group = ApplicationPlugin . APPLICATION_GROUP
8684 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 {
6666 File startScript = getFile(' build/install/myapp-shadow/bin/myapp' )
6767 assert startScript. exists()
6868 assert startScript. text. contains(" CLASSPATH=\$ APP_HOME/lib/myapp-1.0-all.jar" )
69- assert startScript. text. contains(" -jar \"\\\"\$ CLASSPATH\\\"\" \"\$ APP_ARGS\" " )
7069 assert startScript. text. contains(" exec \"\$ JAVACMD\" \"\$ @\" " )
7170
7271 cleanup :
@@ -146,7 +145,6 @@ class ApplicationSpec extends PluginSpecification {
146145 File startScript = getFile(' build/install/myapp-shadow/bin/myapp' )
147146 assert startScript. exists()
148147 assert startScript. text. contains(" CLASSPATH=\$ APP_HOME/lib/myapp-1.0-all.jar" )
149- assert startScript. text. contains(" -jar \"\\\"\$ CLASSPATH\\\"\" \"\$ APP_ARGS\" " )
150148 assert startScript. text. contains(" exec \"\$ JAVACMD\" \"\$ @\" " )
151149
152150 cleanup :
You can’t perform that action at this time.
0 commit comments