Browse Source

Remove unnecessary mainClassName

Since each sample has (supposedly) only one application class and not
a lot of the code, the `mainClassName` attribute in the gradle build is
not really useful and can lead to inconsistency if the application class
is moved.

See gh-3588
pull/3589/head
Stephane Nicoll 11 years ago
parent
commit
7c3cdead28
  1. 2
      spring-boot-samples/spring-boot-sample-web-static/build.gradle
  2. 2
      spring-boot-samples/spring-boot-sample-web-ui/build.gradle

2
spring-boot-samples/spring-boot-sample-web-static/build.gradle

@ -22,8 +22,6 @@ apply plugin: 'idea' @@ -22,8 +22,6 @@ apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
mainClassName = "sample.ui.SampleWebStaticApplication"
war {
baseName = 'spring-boot-sample-web-static'
version = '0.0.0'

2
spring-boot-samples/spring-boot-sample-web-ui/build.gradle

@ -23,8 +23,6 @@ apply plugin: 'eclipse' @@ -23,8 +23,6 @@ apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
mainClassName = "sample.web.ui.SampleWebUiApplication"
springBoot {
classifier = 'exec'
}

Loading…
Cancel
Save