forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (35 loc) · 1.13 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
plugins {
id 'java'
// always depends on the latest snapshot of Spoon
// https://github.com/patrikerdes/gradle-use-latest-versions-plugin
id 'se.patrikerdes.use-latest-versions' version '0.2.12'
id 'com.github.ben-manes.versions' version '0.21.0'
}
group 'fr.inria.gforge.spoon'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://raw.github.com/SpoonLabs/spoon-dependencies/master' }
}
dependencies {
compile group: 'fr.inria.gforge.spoon', name: 'spoon-core', version: '7.2.0'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'com.microsoft', name: 'z3', version: '4.8.4'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task copyDependencies(type: Copy) {
from configurations.compile
into "${buildDir}/libs"
}
compileJava {
dependsOn copyDependencies
}
jar {
archiveName 'spoon-dataflow.jar'
destinationDir buildDir
manifest {
attributes 'Main-Class': 'fr.inria.spoon.dataflow.Main'
attributes 'Class-Path': configurations.compile.collect { "libs/" + it.getName() }.join(' ')
}
}