Skip to content

Commit 4f8a18f

Browse files
committed
Merge branch '2.5.x' into 2.6.x
Closes gh-29966
2 parents fc964e5 + 9c9e04b commit 4f8a18f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/running/boot-run-main.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55

66
// tag::main[]
77
bootRun {
8-
main = 'com.example.ExampleApplication'
8+
mainClass = 'com.example.ExampleApplication'
99
}
1010
// end::main[]
1111

1212
task configuredMainClass {
1313
doLast {
14-
println bootRun.main
14+
println bootRun.mainClass
1515
}
1616
}

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/running/boot-run-main.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ plugins {
77

88
// tag::main[]
99
tasks.getByName<BootRun>("bootRun") {
10-
main = "com.example.ExampleApplication"
10+
mainClass.set("com.example.ExampleApplication")
1111
}
1212
// end::main[]
1313

1414
task("configuredMainClass") {
1515
doLast {
16-
println(tasks.getByName<BootRun>("bootRun").main)
16+
println(tasks.getByName<BootRun>("bootRun").mainClass)
1717
}
1818
}

0 commit comments

Comments
 (0)