Update BootRun to support Gradle's configuration cache
See gh-22922
This commit is contained in:
@@ -10,8 +10,3 @@ application {
|
||||
}
|
||||
// end::main-class[]
|
||||
|
||||
task configuredMainClass {
|
||||
doLast {
|
||||
println bootRun.main
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,3 @@ application {
|
||||
mainClass.set("com.example.ExampleApplication")
|
||||
}
|
||||
// end::main-class[]
|
||||
|
||||
task("configuredMainClass") {
|
||||
doLast {
|
||||
println(tasks.getByName<BootRun>("bootRun").main)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,9 +9,3 @@ springBoot {
|
||||
mainClass = 'com.example.ExampleApplication'
|
||||
}
|
||||
// end::main-class[]
|
||||
|
||||
task configuredMainClass {
|
||||
doLast {
|
||||
println bootRun.main
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,3 @@ springBoot {
|
||||
mainClass.set("com.example.ExampleApplication")
|
||||
}
|
||||
// end::main-class[]
|
||||
|
||||
task("configuredMainClass") {
|
||||
doLast {
|
||||
println(tasks.getByName<BootRun>("bootRun").main)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user