From 02589b1b2dc36ebd7bcc9b46c32c59449c1e3134 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Tue, 5 Jul 2016 17:12:29 -0400 Subject: [PATCH] Update timestamp sample * Log Level is now at DEBUG * Removed H2 dependency * Updated main readme to discuss how to build samples resolves #165 --- README.adoc | 9 ++++++++- spring-cloud-task-samples/timestamp/pom.xml | 8 -------- .../timestamp/src/main/resources/application.properties | 1 + 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.adoc b/README.adoc index a342c503..2903bcff 100644 --- a/README.adoc +++ b/README.adoc @@ -9,13 +9,20 @@ process persists beyond the life of the task for future reporting. * Java 7 or Above -== Build: +== Build Main Project: [source,shell,indent=2] ---- $ ./mvnw clean install ---- +== Build Samples: + +[source,shell,indent=2] +---- +$ ./mvnw -P samples clean install +---- + == Example: [source,java,indent=2] diff --git a/spring-cloud-task-samples/timestamp/pom.xml b/spring-cloud-task-samples/timestamp/pom.xml index c943d2de..92e56f18 100644 --- a/spring-cloud-task-samples/timestamp/pom.xml +++ b/spring-cloud-task-samples/timestamp/pom.xml @@ -48,14 +48,6 @@ spring-cloud-task-starter 1.0.1.BUILD-SNAPSHOT - - org.springframework.boot - spring-boot-starter-jdbc - - - com.h2database - h2 - org.springframework.boot spring-boot-configuration-processor diff --git a/spring-cloud-task-samples/timestamp/src/main/resources/application.properties b/spring-cloud-task-samples/timestamp/src/main/resources/application.properties index db005fb6..e74e1450 100644 --- a/spring-cloud-task-samples/timestamp/src/main/resources/application.properties +++ b/spring-cloud-task-samples/timestamp/src/main/resources/application.properties @@ -1 +1,2 @@ spring.application.name=Demo Timestamp Task +logging.level.org.springframework.cloud.task=DEBUG