From 5dd87a7218dfb8d394a50f329f397bb78dfc42fd Mon Sep 17 00:00:00 2001 From: Gunnar Hillert Date: Thu, 17 Apr 2014 23:56:12 -0400 Subject: [PATCH] BATCH-2144 Exclude long running test (same behavior as Maven) * `$ mvn clean install -P bootstrap,all` does not run all tests. Exclude those additional tests from the Gradle build by default. They can be activated by providing the the `alltests` parameter, e.g.: `./gradlew clean build -Palltests` * Execute the exact same tests as the Maven build * Improve execution speed of Gradle build --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8600628f5..40a4805c2 100644 --- a/build.gradle +++ b/build.gradle @@ -187,6 +187,7 @@ subprojects { subproject -> project('spring-batch-core') { description = 'Spring Batch Core' + dependencies { compile project(":spring-batch-infrastructure") @@ -323,6 +324,9 @@ project('spring-batch-core-tests') { optional "org.aspectj:aspectjweaver:$aspectjVersion" optional "cglib:cglib-nodep:$cglibVersion" } + test { + enabled = project.hasProperty('alltests') ? true : false + } } project('spring-batch-infrastructure-tests') { @@ -387,7 +391,9 @@ project('spring-batch-infrastructure-tests') { runtime "mysql:mysql-connector-java:$mysqlVersion" runtime "postgresql:postgresql:$postgresqlVersion" - + } + test { + enabled = project.hasProperty('alltests') ? true : false } }