-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
41 lines (34 loc) · 935 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
31
32
33
34
35
36
37
38
39
40
41
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'com.github.epilepticz'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'log4j', name: 'log4j', version:'1.2.17'
compile group: 'junit', name: 'junit', version:'4.+'
}
test {
systemProperties 'property': 'value'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.github.epilepticz.streamchecker.main.Main',
'Class-Path': 'com.github.epilepticz.streamchecker'
)
}
//Includiert alle Dependencies http://stackoverflow.com/questions/4871656/using-gradle-to-build-a-jar-with-dependencies
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}