-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
38 lines (33 loc) · 1.37 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
apply from: "${rootProject.projectDir}/../versions.gradle"
apply from: "${rootProject.projectDir}/../common.gradle"
subprojects {
apply plugin: 'java'
ext.enclaveMode = findProperty("enclaveMode")?.toString()?.toLowerCase() ?: "simulation"
ext.runtimeType = findProperty("runtimeType")?.toString()?.toLowerCase() ?: "graalvm"
repositories {
maven {
// Only Conclave artifacts should be present here
url = "${rootProject.projectDir}/../build/repo"
}
apply from: "${rootProject.projectDir}/repositories.gradle"
}
// This will also configure Kotlin: https://kotlinlang.org/docs/gradle.html#gradle-java-toolchains-support
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperty "enclaveMode", enclaveMode
systemProperty "runtimeType", runtimeType
systemProperty "org.slf4j.simpleLogger.logFile", "System.out"
// 10 mins should be plenty time to run a single integration test. If not re-write the test! We want timely
// feedback if a test is hanging.
systemProperty "junit.jupiter.execution.timeout.default", "10 m"
// TODO: Remove this once gramine reaches feature parity
if (runtimeType == "gramine") {
failFast = false
}
}
}