OSDN Git Service

Fix library name from GNU classpath
[dictzip-java/dictzip-java.git] / build.gradle
index 8adf4f6..068a0d7 100644 (file)
@@ -3,6 +3,7 @@ subprojects {
   apply plugin: 'java'
   apply plugin: 'jacoco'
   apply plugin: 'checkstyle'
+  apply plugin: 'findbugs'
 
   sourceCompatibility = '1.7'
   targetCompatibility = '1.7'
@@ -10,15 +11,30 @@ subprojects {
   [compileJava, compileTestJava]*.options*.bootClasspath = "$JDK7_HOME/jre/lib/rt.jar"
   checkstyle {
     config = resources.text.fromFile("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
+    ignoreFailures = true
     toolVersion = '6.16.1'
   }
 
+  // Force prevent checkstyle/findbugs on Test.
+  task checkstyleTest(overwrite: true) << {}
+  task findbugsTest(overwrite: true) << {}
+  tasks.withType(FindBugs) {
+    reports {
+      xml.enabled = false
+      html.enabled = true
+    }
+  }
+
   repositories {
     mavenCentral()
   }
 
   dependencies {
-    testCompile group: 'junit', name: 'junit', version: '4.11'
+    testCompile 'org.testng:testng:6.9.10'
+  }
+
+  test {
+    useTestNG()
   }
 }