From 3760ca95d522c0695a725c15ecc6ecdad4167f42 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 18 Dec 2014 11:21:04 +0100 Subject: [PATCH] Add checkstyle to tests-on-jvm project --- tests-on-jvm/build.gradle | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests-on-jvm/build.gradle b/tests-on-jvm/build.gradle index 9a1310f53..f7ed09154 100644 --- a/tests-on-jvm/build.gradle +++ b/tests-on-jvm/build.gradle @@ -4,6 +4,7 @@ repositories { apply plugin: 'java' apply plugin: 'findbugs' +apply plugin: 'checkstyle' dependencies { testCompile project(':') @@ -28,6 +29,11 @@ sourceSets { } } +checkstyle { + ignoreFailures = true + configFile file("$rootProject.projectDir/config/checkstyle/checkstyle.xml") +} + findbugs { ignoreFailures = true effort = 'max' @@ -35,10 +41,7 @@ findbugs { excludeFilter = file("$rootProject.projectDir/config/findbugs/exclude_filter.xml") } +check.dependsOn 'checkstyleTest' check.dependsOn 'findbugsTest' -test.dependsOn ':compileDebugJava' - -task wrapper(type: Wrapper) { - gradleVersion = '1.11' -} +compileTestJava.dependsOn ':compileDebugJava'