Skip to content

Commit

Permalink
Merge branch '2.5.x' into 2.6.x
Browse files Browse the repository at this point in the history
Closes gh-29966
  • Loading branch information
wilkinsona committed Feb 23, 2022
2 parents fc964e5 + 9c9e04b commit 4f8a18f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -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
}
}
Expand Up @@ -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)
}
}

0 comments on commit 4f8a18f

Please sign in to comment.