Skip to content

Commit 59e4c84

Browse files
committed
Switch to 'mainClass' property of the bootJar Gradle DSL, BootJar Gradle Task.
1 parent 3074607 commit 59e4c84

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/boot/gemfire-with-scoped-proxies/spring-session-sample-boot-gemfire-with-scoped-proxies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies {
3030
mainClassName = 'sample.client.Application'
3131

3232
bootJar {
33-
mainClassName = 'sample.client.Application'
33+
mainClass = 'sample.client.Application'
3434
}
3535

3636
run {

samples/boot/gemfire/spring-session-sample-boot-gemfire.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ dependencies {
1414
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
1515
}
1616

17-
compile "org.springframework.data:spring-data-geode-test"
17+
compile("org.springframework.data:spring-data-geode-test") {
18+
exclude group: "org.springframework.boot", module: "spring-boot-loader-tools"
19+
}
20+
1821
compile "org.webjars:bootstrap"
1922
compile "org.webjars:webjars-locator"
2023

@@ -33,7 +36,7 @@ dependencies {
3336
mainClassName = 'sample.client.Application'
3437

3538
bootJar {
36-
mainClassName = 'sample.client.Application'
39+
mainClass = 'sample.client.Application'
3740
}
3841

3942
run {

0 commit comments

Comments
 (0)