-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
38 lines (31 loc) · 1.17 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
apply plugin: 'java'
apply plugin: 'maven'
group = 'org.mri'
version = '1.0.3'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version:'2.1'
compile group: 'fr.inria.gforge.spoon', name: 'spoon-core', version:'4.1.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.1'
compile group: 'args4j', name: 'args4j', version:'2.0.29'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.7'
compile group: 'org.slf4j', name: 'slf4j-simple', version:'1.7.7'
compile group: 'com.google.guava', name: 'guava', version:'18.0'
testCompile group: 'junit', name: 'junit', version:'4.11'
}
jar {
manifest {
attributes("Class-Path": configurations.compile.collect { it.getName() }.join(' '),
"Main-Class": "org.mri.ShowAxonFlow")
}
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude "log4j.properties"
}
}
task showClasspath << {
it.println sourceSets.main.runtimeClasspath.collect { it.absolutePath }.join(':')
}