forked from stathissideris/ditaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·56 lines (47 loc) · 1.21 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'findbugs'
apply plugin: 'pmd'
import org.apache.tools.ant.taskdefs.condition.Os
version = '0_9'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
}
configurations {
bundleJar
compile.extendsFrom bundleJar
}
dependencies {
bundleJar 'commons-cli:commons-cli:1.2'
bundleJar 'net.htmlparser.jericho:jericho-html:3.1'
compile 'batik:batik-bridge:1.6-1'
compile files(javadocTools())
testCompile 'junit:junit:4.11'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'com.github.stefanbirkner:system-rules:1.4.0'
}
jar {
manifest {
attributes('Main-Class': 'org.stathissideris.ascii2image.core.CommandLineConverter')
}
configurations.bundleJar.each {
from zipTree(it)
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
/*
* Apple's JDK does not have tools.jar
*/
File javadocTools() {
String javaHome = System.properties['java.home']
File toolsJar = new File(javaHome, '../lib/tools.jar')
toolsJar.exists() ? toolsJar : new File(javaHome, '../Classes/classes.jar')
}