From 8960b88020bf5cdb82e6087091b4b5432211c266 Mon Sep 17 00:00:00 2001 From: Justin Garrick Date: Thu, 23 Jul 2015 10:48:14 -0400 Subject: [PATCH 1/2] Fix package name of web-ui sample Closes gh-3588 --- spring-boot-samples/spring-boot-sample-web-ui/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-web-ui/build.gradle b/spring-boot-samples/spring-boot-sample-web-ui/build.gradle index c2514582f1..e4bf68833e 100644 --- a/spring-boot-samples/spring-boot-sample-web-ui/build.gradle +++ b/spring-boot-samples/spring-boot-sample-web-ui/build.gradle @@ -23,7 +23,7 @@ apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' -mainClassName = "sample.ui.SampleWebUiApplication" +mainClassName = "sample.web.ui.SampleWebUiApplication" springBoot { classifier = 'exec' From 7c3cdead288bb0dc710917112553d9924a2502bf Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 23 Jul 2015 17:36:41 +0200 Subject: [PATCH 2/2] 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 --- spring-boot-samples/spring-boot-sample-web-static/build.gradle | 2 -- spring-boot-samples/spring-boot-sample-web-ui/build.gradle | 2 -- 2 files changed, 4 deletions(-) diff --git a/spring-boot-samples/spring-boot-sample-web-static/build.gradle b/spring-boot-samples/spring-boot-sample-web-static/build.gradle index ab834b389d..c12759d6b1 100644 --- a/spring-boot-samples/spring-boot-sample-web-static/build.gradle +++ b/spring-boot-samples/spring-boot-sample-web-static/build.gradle @@ -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' diff --git a/spring-boot-samples/spring-boot-sample-web-ui/build.gradle b/spring-boot-samples/spring-boot-sample-web-ui/build.gradle index e4bf68833e..25ddf73c73 100644 --- a/spring-boot-samples/spring-boot-sample-web-ui/build.gradle +++ b/spring-boot-samples/spring-boot-sample-web-ui/build.gradle @@ -23,8 +23,6 @@ apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' -mainClassName = "sample.web.ui.SampleWebUiApplication" - springBoot { classifier = 'exec' }