forked from google/binnavi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (72 loc) · 2.63 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
def gradle_version = '2.6'
sourceCompatibility = 1.8
version = '6.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "lib"
}
}
dependencies {
compile group: 'org.antlr', name: 'antlr', version: '3.2'
compile group: 'org.apache.xmlgraphics', name: 'batik-awt-util', version: '1.8'
compile group: 'org.apache.xmlgraphics', name: 'batik-dom', version: '1.8'
compile group: 'org.apache.xmlgraphics', name: 'batik-svggen', version: '1.8'
compile group: 'org.apache.xmlgraphics', name: 'batik-util', version: '1.8'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'com.jidesoft', name: 'jide-oss', version: '3.6.9'
compile group: 'org.postgresql', name: 'postgresql', version: '9.4-1201-jdbc41'
compile group: 'javax.inject', name: 'javax.inject', version: '1'
compile group: 'org.python', name: 'jython-standalone', version: '2.5.3'
compile group: 'org.w3c.css', name: 'sac', version: '1.3'
compile group: 'xml-apis', name: 'xml-apis', version: '1.4.01'
compile group: 'xml-apis', name: 'xml-apis-ext', version: '1.3.04'
compile group: 'net.sf.proguard', name: 'proguard-base', version: '5.2.1'
compile group: 'com.google.security.zynamics.binnavi', name: 'yfileswrap-obfuscated', version: '6.1'
compile group: 'junit', name: 'junit', version: '4+'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
exclude '**/yfileswrap/**'
exclude 'com/google/security/zynamics/zylib/yfileswrap/**'
exclude 'com/google/security/zynamics/reil/yfileswrap/**'
}
resources {
srcDir 'src/main/java'
include 'com/google/security/zynamics/binnavi/data/**'
}
}
}
eclipse {
project {
name = 'binnavi'
}
}
jar {
dependsOn 'versionInfo'
manifest {
attributes (
"Main-Class": "com.google.security.zynamics.binnavi.CMain",
"SplashScreen-Image": "com/google/security/zynamics/binnavi/data/splash.jpg"
)
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
javadoc {
failOnError = false
}
task versionInfo(type:Exec){
commandLine 'git describe --always HEAD'.split()
ext.versionfile = new File('src/main/java/com/google/security/zynamics/binnavi/data/build-data.properties')
standardOutput = new ByteArrayOutputStream()
doLast {
def theDate = '#' + new Date() + '\n\n'
versionfile.text = theDate + 'build.revision=' + standardOutput.toString()
}
}