forked from R3Conclave/conclave-core-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gradle
49 lines (42 loc) · 1.33 KB
/
common.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
allprojects {
group = "com.r3.conclave"
version = conclave_version
}
subprojects {
tasks.withType(AbstractCompile) {
if (it.class.name.startsWith('org.jetbrains.kotlin.gradle.tasks.KotlinCompile')) {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=all']
javaParameters = true
}
}
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperty 'java.io.tmpdir', buildDir.absolutePath
systemProperty 'conclave.spid', findProperty("epid.spid")
systemProperty 'conclave.attestation-key', findProperty("epid.attestation-key")
failFast = true
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
beforeTest { descriptor ->
logger.lifecycle("Starting> {}.{} ({})", descriptor.classDisplayName, descriptor.displayName, descriptor.id)
}
afterTest { descriptor ->
logger.lifecycle("Ending> {}.{} ({})", descriptor.classDisplayName, descriptor.displayName, descriptor.id)
}
}
tasks.withType(Jar) {
metaInf {
from(project.rootDir) {
include 'LICENSE'
include 'NOTICE.md'
}
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}