-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 lines (44 loc) · 1.13 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
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = '1.7'
repositories {
mavenCentral()
}
// Build apt before compiling Java code
ant.importBuild('submodules/apt/build.xml') { antTargetName ->
'apt_' + antTargetName
}
eclipseClasspath.dependsOn apt_jar
compileJava.dependsOn apt_jar
clean.dependsOn apt_clean
dependencies {
// APT dependencies
compile files('submodules/apt/apt.jar')
// APT-GUI dependencies
compile 'com.google.inject:guice:4.0'
compile 'com.google.guava:guava:19.0'
compile('org.apache.xmlgraphics:batik-dom:1.8'){
exclude module: 'xalan'
exclude module: 'batik-css'
exclude module: 'xml-apis-ext'
exclude module: 'xml-apis'
}
compile('org.apache.xmlgraphics:batik-svggen:1.8') {
exclude module: 'xml-apis'
}
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.1.0'
testCompile 'org.hamcrest:java-hamcrest:2.0.0.0'
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
jar {
manifest {
attributes 'Main-Class': 'uniol.aptgui.Main'
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}