-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild.gradle
49 lines (42 loc) · 1.18 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
44
45
46
47
48
49
apply plugin: 'java'
repositories {
mavenCentral()
}
// Set the Java version compatibility
sourceCompatibility = '17'
targetCompatibility = '17'
dependencies {
implementation fileTree(dir: 'dependencies', include: ['*.jar'])
implementation 'com.google.guava:guava:26.0-jre'
implementation 'com.beust:jcommander:1.78'
implementation 'com.github.spotbugs:spotbugs-annotations:3.1.8'
implementation 'org.javatuples:javatuples:1.2'
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.11.0'
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '2.2'
}
// The lines below 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.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
artifacts {
archives fatJar
}
// Disabling asserts.
tasks.withType(Test) {
enableAssertions = false
}