-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (41 loc) · 1.54 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
apply plugin: 'java'
sourceSets {
main {
java.srcDir 'src'
resources.srcDirs = ["src/ab/vision/resources"]
resources.include '**'
}
}
repositories {
mavenCentral()
}
dependencies {
compile(
[group: 'commons-codec', name: 'commons-codec', version: '1.7'],
[group: 'gov.nist.math', name: 'jama', version: '1.0.2'],
[group: 'org.eclipse.jdt', name: 'core', version: '3.3.0-v_771'],
[group: 'org.jdbi', name: 'jdbi', version: '2.77'],
[group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'],
[group: 'mysql', name: 'mysql-connector-java', version: '6.0.5'],
[group: 'org.xerial', name: 'sqlite-jdbc', version: '3.15.1'],
// [group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.3.0'],
[group: 'org.postgresql', name: 'postgresql', version: '9.4.1212'],
[group: 'commons-lang', name: 'commons-lang', version: '2.0'],
[group: 'commons-cli', name: 'commons-cli', version: '1.3.1'],
[group: 'log4j', name: 'log4j', version: '1.2.17'],
files('external/WebSocket.jar'),
)
}
task uberjar(type: Jar) {
baseName = "ABSoftware"
destinationDir = file("$rootDir/")
from files(sourceSets.main.output)
from { configurations.compile.collect { zipTree(it) } } {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest {
attributes 'Main-Class': 'ab.demo.MainEntry'
}
}