From e43af0191655a3754411e6b359e0cfc7ae8e9998 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Fri, 30 Dec 2016 09:53:39 +0100 Subject: [PATCH] Gradle test task in its own file. --- .../Gradle/spring-jpa-persistence/build-test.gradle | 12 ++++++++++++ SpringJava/Gradle/spring-jpa-persistence/build.gradle | 15 +-------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 SpringJava/Gradle/spring-jpa-persistence/build-test.gradle diff --git a/SpringJava/Gradle/spring-jpa-persistence/build-test.gradle b/SpringJava/Gradle/spring-jpa-persistence/build-test.gradle new file mode 100644 index 0000000..3cc22f6 --- /dev/null +++ b/SpringJava/Gradle/spring-jpa-persistence/build-test.gradle @@ -0,0 +1,12 @@ +test { + testLogging { + events "PASSED", "FAILED", "SKIPPED" + } + + jacoco { + append = false + destinationFile = file("$buildDir/jacoco/jacoco.exec") + classDumpFile = file("$buildDir/jacoco/classpathdumps") + } +} + diff --git a/SpringJava/Gradle/spring-jpa-persistence/build.gradle b/SpringJava/Gradle/spring-jpa-persistence/build.gradle index c9c25f3..d726f95 100644 --- a/SpringJava/Gradle/spring-jpa-persistence/build.gradle +++ b/SpringJava/Gradle/spring-jpa-persistence/build.gradle @@ -20,6 +20,7 @@ apply plugin: 'jacoco' apply plugin: 'com.ewerk.gradle.plugins.querydsl' apply plugin: 'docker-compose' +apply from: 'build-test.gradle' apply from: 'build-integTest.gradle' @@ -133,20 +134,6 @@ dependencies { testCompile 'com.palantir.docker.compose:docker-compose-rule:0.28.1' } - -test { - testLogging { - events "PASSED", "FAILED", "SKIPPED" - } - - jacoco { - append = false - destinationFile = file("$buildDir/jacoco/jacoco.exec") - classDumpFile = file("$buildDir/jacoco/classpathdumps") - } -} - - querydsl { library = 'com.querydsl:querydsl-apt:4.1.3' querydslSourcesDir = "$buildDir/generated-sources/querydsl" -- 2.1.4