mirror of
https://github.com/corda/corda.git
synced 2024-12-26 08:01:09 +00:00
166bc6b3f3
Note: the "repo" directory from the conclave 1.2.1 SDK must be copied into the root directory of this project manually
59 lines
1.3 KiB
Groovy
59 lines
1.3 KiB
Groovy
plugins {
|
|
id 'kotlin'
|
|
id 'com.r3.conclave.enclave'
|
|
}
|
|
|
|
/**
|
|
* The default Java version for enclaves is 11 so we need to set it to 8 for the CorDapp to work.
|
|
*/
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
/**
|
|
* There is no Kotlin code in this project,
|
|
* but if there were, this section would be required.
|
|
* Note: Java versions above and here have to match.
|
|
*/
|
|
/*
|
|
tasks.withType(AbstractCompile) {
|
|
if (it.class.name.startsWith('org.jetbrains.kotlin.gradle.tasks.KotlinCompile')) {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8
|
|
apiVersion = '1.5'
|
|
languageVersion = '1.5'
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
|
|
dependencies {
|
|
implementation project(':common-enclave')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
implementation 'junit:junit:4.13.1'
|
|
|
|
testImplementation(platform('org.junit:junit-bom:5.7.0'))
|
|
}
|
|
|
|
conclave {
|
|
productID = 1
|
|
revocationLevel = 0
|
|
|
|
simulation {
|
|
signingType = privateKey
|
|
signingKey = file("sample_private_key.pem")
|
|
}
|
|
|
|
debug {
|
|
signingType = privateKey
|
|
signingKey = file("sample_private_key.pem")
|
|
}
|
|
|
|
release {
|
|
signingType = privateKey
|
|
signingKey = file("sample_private_key.pem")
|
|
}
|
|
}
|