diff --git a/build.gradle b/build.gradle index 295bb5a1..95d10808 100644 --- a/build.gradle +++ b/build.gradle @@ -722,15 +722,11 @@ project('cafe-dsl') { testCompile 'org.springframework.boot:spring-boot-starter-test' } + bootRun { main = 'org.springframework.integration.samples.dsl.cafe.lambda.Application' } - task run(type: JavaExec) { - main 'org.springframework.integration.samples.dsl.cafe.nonlambda.Application' - classpath = sourceSets.main.runtimeClasspath - } - tasks.withType(JavaExec) { standardInput = System.in } diff --git a/dsl/cafe-dsl/README.md b/dsl/cafe-dsl/README.md index 6031cfc2..f2e051d2 100644 --- a/dsl/cafe-dsl/README.md +++ b/dsl/cafe-dsl/README.md @@ -12,7 +12,4 @@ See the `cafe` project **README.md** for more details about the domain and the C Main class --> Run As --> Java Application) * or from the command line: - $ gradlew :cafe-dsl:run - -There is the second similar sample - `org.springframework.integration.samples.dsl.cafe.nonlambda.Application`, which -demonstrates how Spring Integration Java DSL can be used from pre Java 8 environment. + $ gradlew :cafe-dsl:bootRun