/
build.gradle.kts
52 lines (44 loc) · 1.27 KB
/
build.gradle.kts
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
plugins {
`java-library`
}
// version has to be manually adjusted to keep same between version.xml and here
version = "1.0.2"//-SNAPSHOT
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
dependencies {
// api can pass beast jars to lphybeast
api(fileTree("lib") {
// beast 2
// include("*.jar")
exclude("**/*-src.jar")
exclude("**/BEAST-app-*.jar")
exclude("**/*.xml")
})
// tests
testImplementation("junit:junit:4.13.2")
// testRuntimeOnly(beast2)
}
tasks.jar {
manifest {
// shared attr in the root build
attributes(
"Implementation-Title" to "Phylonco BEAST2",
"Implementation-Vendor" to "Phylonco development team",
)
}
}
tasks.test {
useJUnit()
// useJUnitPlatform()
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "1G"
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
//testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
// BeagleTreeLikelihoodWithErrorTest uses Beagle
exclude("**/BeagleTreeLikelihoodWithErrorTest*")
}