-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
51 lines (39 loc) · 1023 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
42
43
44
45
46
47
48
49
50
51
apply plugin: 'java'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
//sourceCompatibility = 1.11
//targetCompatibility = 1.11
archivesBaseName = "ACE"
version = '2.4'
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
//testImplementation 'junit:junit:4.12'
}
// with this statement below (jar { }), we build a fat jar, i.e. a jar with included dependencies
jar {
manifest {
attributes(
'Main-Class': 'main.Head'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
//executable = "/path/to/jdk/bin/java"
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "1024m"
// set JVM arguments for the test JVM(s)
jvmArgs "-da"
jvmArgs "-Xmx12G" // -d64
}