5 apply plugin: 'checkstyle'
6 apply plugin: 'findbugs'
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"
13 config = resources.text.fromFile("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
15 toolVersion = '6.16.1'
18 // Force prevent checkstyle/findbugs on Test.
19 task checkstyleTest(overwrite: true) << {}
20 task findbugsTest(overwrite: true) << {}
21 tasks.withType(FindBugs) {
33 testCompile 'org.testng:testng:6.9.10'
41 project(':dictzip-lib') {}
43 project(':dictzip-cli') {
44 apply plugin: 'application'
45 mainClassName = 'org.dict.zip.cli.Main'
46 applicationName = 'DictZip'
49 compile project(':dictzip-lib'),
50 'commons-codec:commons-codec:1.10',
51 'gnu.getopt:java-getopt:1.0.13'
52 testCompile 'commons-io:commons-io:2.4'