OSDN Git Service

Change multiple fies handle
[dictzip-java/dictzip-java.git] / build.gradle
1 // common settings
2 subprojects {
3   apply plugin: 'java'
4   apply plugin: 'jacoco'
5   apply plugin: 'checkstyle'
6   apply plugin: 'findbugs'
7
8   sourceCompatibility = '1.7'
9   targetCompatibility = '1.7'
10   [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
11   [compileJava, compileTestJava]*.options*.bootClasspath = "$JDK7_HOME/jre/lib/rt.jar"
12   checkstyle {
13     config = resources.text.fromFile("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
14     ignoreFailures = true
15     toolVersion = '6.16.1'
16   }
17
18   // Force prevent checkstyle/findbugs on Test.
19   task checkstyleTest(overwrite: true) << {}
20   task findbugsTest(overwrite: true) << {}
21   tasks.withType(FindBugs) {
22     reports {
23       xml.enabled = false
24       html.enabled = true
25     }
26   }
27
28   repositories {
29     mavenCentral()
30   }
31
32   dependencies {
33     testCompile 'org.testng:testng:6.9.10'
34   }
35
36   test {
37     useTestNG()
38   }
39 }
40
41 project(':dictzip-lib') {}
42
43 project(':dictzip-cli') {
44   apply plugin: 'application'
45   mainClassName = 'org.dict.zip.cli.Main'
46   applicationName = 'DictZip'
47
48   dependencies {
49     compile project(':dictzip-lib'),
50        'commons-codec:commons-codec:1.10',
51        'gnu.getopt:java-getopt:1.0.13'
52   }
53 }