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") } }