From: Gustavo Martin Morcuende Date: Fri, 30 Dec 2016 08:53:39 +0000 (+0100) Subject: Gradle test task in its own file. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=e43af0191655a3754411e6b359e0cfc7ae8e9998;p=JavaForFun Gradle test task in its own file. --- 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"