mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
406f7ff292
This requires Kotlin 1.2 versions of core and serialization (core-1.2 and serialization-1.2 respectively), which are just "shell" modules and which compile the existing source code with Kotlin 1.2. The 1.2 plugin does not work with the current version of Gradle and so the 1.2 compiler has to be called directly. Now with two versions of Kotlin in the code base, each module needs to have its version manually specified to ensure a clean separation. Otherwise, the default Kotlin version can override 1.2 when needed. Some of the code was tidied-up or improved to enable it to be cross-compiled. For post-1.2 APIs being used, they have been copied into core-1.2 with the same method signatures. OpenTelemetryComponent was moved to node-api, along with the dependency, to avoid also having a 1.2 version for the opentelemetry module.
53 lines
2.1 KiB
Groovy
53 lines
2.1 KiB
Groovy
// This contains the SwapIdentitiesFlow which can be used for exchanging confidential identities as part of a flow.
|
|
// TODO: Merge this into core: the original plan was to develop it independently but in practice it's too widely used to break compatibility now, as finance uses it.
|
|
apply plugin: 'org.jetbrains.kotlin.jvm'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
|
apply plugin: 'corda.common-publishing'
|
|
|
|
description 'Corda Experimental Confidential Identities'
|
|
|
|
cordapp {
|
|
targetPlatformVersion corda_platform_version.toInteger()
|
|
}
|
|
|
|
dependencies {
|
|
cordaProvided project(':core')
|
|
|
|
api "org.slf4j:slf4j-api:$slf4j_version"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
testImplementation "co.paralleluniverse:quasar-core:$quasar_version"
|
|
testImplementation "junit:junit:$junit_version"
|
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
|
|
|
// Guava: Google test library (collections test suite)
|
|
testImplementation "com.google.guava:guava-testlib:$guava_version"
|
|
|
|
// Bring in the MockNode infrastructure for writing protocol unit tests.
|
|
testImplementation project(":node")
|
|
testImplementation project(":node-api")
|
|
testImplementation project(":node-driver")
|
|
testImplementation project(":core-test-utils")
|
|
testImplementation project(':finance:contracts')
|
|
testImplementation project(':finance:workflows')
|
|
|
|
// AssertJ: for fluent assertions for testing
|
|
testImplementation "org.assertj:assertj-core:$assertj_version"
|
|
testImplementation "com.natpryce:hamkrest:$hamkrest_version"
|
|
testImplementation "io.reactivex:rxjava:$rxjava_version"
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
artifactId 'corda-confidential-identities'
|
|
from components.cordapp
|
|
}
|
|
}
|
|
}
|