Merge branch '2.6.x' into 2.7.x

Closes gh-29967
pull/29976/head
Andy Wilkinson 3 years ago
commit 1ae46dee6d

@ -5,12 +5,12 @@ plugins {
// tag::main[]
bootRun {
main = 'com.example.ExampleApplication'
mainClass = 'com.example.ExampleApplication'
}
// end::main[]
task configuredMainClass {
doLast {
println bootRun.main
println bootRun.mainClass
}
}

@ -7,12 +7,12 @@ plugins {
// tag::main[]
tasks.getByName<BootRun>("bootRun") {
main = "com.example.ExampleApplication"
mainClass.set("com.example.ExampleApplication")
}
// end::main[]
task("configuredMainClass") {
doLast {
println(tasks.getByName<BootRun>("bootRun").main)
println(tasks.getByName<BootRun>("bootRun").mainClass)
}
}

Loading…
Cancel
Save