-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
30 lines (26 loc) · 964 Bytes
/
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
group 'eth'
version '1.0'
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6'
compile group: 'org.springframework', name: 'spring-core', version: '1.2.9'
compile group: 'org.springframework', name: 'spring-context', version: '1.2.9'
compile group: 'org.springframework', name: 'spring-beans', version: '1.2.9'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile files('lib/jdraw-swisscoross-figure.jar')
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'JDraw',
'Implementation-Version': version,
'Main-Class': 'jdraw.JDraw'
}
baseName = 'jdraw'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}