3 id "co.riiid.gradle" version "0.4.2"
5 id "com.jfrog.bintray" version "1.6"
11 apply plugin: 'jacoco'
12 apply plugin: 'checkstyle'
13 apply plugin: 'findbugs'
14 apply plugin: 'co.riiid.gradle'
15 apply plugin: 'com.jfrog.bintray'
18 sourceCompatibility = jdkVersion
19 targetCompatibility = jdkVersion
20 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
21 [compileJava, compileTestJava]*.options*.bootClasspath = "$JDK_HOME/jre/lib/rt.jar"
23 config = resources.text.fromFile("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
25 toolVersion = '6.16.1'
28 // Force prevent checkstyle/findbugs on Test.
29 task checkstyleTest(overwrite: true) << {}
30 task findbugsTest(overwrite: true) << {}
31 tasks.withType(FindBugs) {
44 testCompile 'org.testng:testng:6.9.10'
51 task sourceJar(type: Jar) {
52 from sourceSets.main.allSource
53 classifier = 'sources'
56 task javadocJar(type: Jar, dependsOn: javadoc) {
57 classifier = 'javadoc'
58 from javadoc.destinationDir
68 project(':dictzip-lib') {
70 testCompile 'tokyo.northside:northside-io:0.2.0'
72 version = projectVersion
75 user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
76 key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
77 configurations = ['archives']
81 licenses = ['GPL-2.0+CE']
83 labels = ['java','dictzip']
84 publicDownloadNumbers = true
89 project(':dictzip-cli') {
90 apply plugin: 'application'
91 mainClassName = 'org.dict.zip.cli.Main'
92 applicationName = 'DictZip'
95 compile project(':dictzip-lib'),
96 'gnu.getopt:java-getopt:1.0.13'
97 testCompile 'tokyo.northside:northside-io:0.2.0'
99 version = projectVersion
102 user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
103 key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
104 configurations = ['archives']
108 licenses = ['GPL-3.0']
110 labels = ['java','dictzip']
111 publicDownloadNumbers = true
116 if (gradle.startParameter.taskNames.contains('bintrayUpload') ||
117 gradle.startParameter.taskNames.contains('githubRelease')) {
118 apply from: 'build.publish.gradle'