Revert "Rework BootRun so that it does not subclass JavaExec"

This reverts commit 6eee9de3c1.

Closes gh-10872
This commit is contained in:
Andy Wilkinson
2017-11-22 17:20:53 +00:00
parent 6f97bc58a6
commit ffca60d308
17 changed files with 37 additions and 283 deletions

View File

@@ -10,6 +10,6 @@ apply plugin: 'org.springframework.boot'
task echoMainClassName {
dependsOn compileJava
doLast {
println 'Main class name = ' + bootRun.mainClassName
println 'Main class name = ' + bootRun.main
}
}

View File

@@ -10,5 +10,5 @@ apply plugin: 'org.springframework.boot'
mainClassName = 'com.example.CustomMainClass'
task echoMainClassName {
println 'Main class name = ' + bootRun.mainClassName
println 'Main class name = ' + bootRun.main
}

View File

@@ -1,12 +0,0 @@
buildscript {
dependencies {
classpath files(pluginClasspath.split(','))
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
bootRun {
args = ['--com.example.foo=bar']
}

View File

@@ -1,15 +0,0 @@
buildscript {
dependencies {
classpath files(pluginClasspath.split(','))
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
bootRun {
execSpec {
systemProperty 'com.example.foo', 'bar'
}
}

View File

@@ -1,12 +0,0 @@
buildscript {
dependencies {
classpath files(pluginClasspath.split(','))
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
bootRun {
jvmArgs = ['-Dcom.example.foo=bar']
}

View File

@@ -12,5 +12,5 @@ springBoot {
}
task echoMainClassName {
println 'Main class name = ' + bootRun.mainClassName
println 'Main class name = ' + bootRun.main
}