-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (37 loc) · 808 Bytes
/
build.gradle
File metadata and controls
43 lines (37 loc) · 808 Bytes
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
apply plugin: 'java'
sourceSets {
main {
java {
srcDir 'src'
}
}
}
repositories {
mavenCentral()
}
// most of the jar libraries is available in the /dependencies folder, not in a remote repository
dependencies {
compile fileTree(dir: 'dependencies', include: ['*.jar'])
testCompile 'junit:junit:4.12'
}
// the lines bellow deal with exporting a running jar
jar {
manifest {
attributes 'Main-Class': 'br.ufpe.cin.app.JFSTMerge'
}
}
task fatJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
artifacts {
archives fatJar
}