mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +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.
59 lines
2.2 KiB
Groovy
59 lines
2.2 KiB
Groovy
apply plugin: 'org.jetbrains.kotlin.jvm'
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
|
apply plugin: 'corda.common-publishing'
|
|
|
|
dependencies {
|
|
api project(':core')
|
|
|
|
implementation project(':serialization')
|
|
|
|
// Jackson and its plugins: parsing to/from JSON and other textual formats.
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_kotlin_version") {
|
|
exclude module: "jackson-databind"
|
|
}
|
|
// Yaml is useful for parsing strings to method calls.
|
|
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version"
|
|
// This adds support for java.time types.
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
|
implementation "com.google.guava:guava:$guava_version"
|
|
|
|
// Bouncy castle support needed for X509 certificate manipulation
|
|
implementation "org.bouncycastle:bcprov-jdk18on:${bouncycastle_version}"
|
|
implementation "org.bouncycastle:bcpkix-jdk18on:${bouncycastle_version}"
|
|
implementation "org.slf4j:slf4j-api:$slf4j_version"
|
|
|
|
testImplementation project(':finance:workflows')
|
|
testImplementation project(':node-api')
|
|
testImplementation project(':test-common')
|
|
testImplementation project(':core-test-utils')
|
|
testImplementation project(':test-utils')
|
|
testImplementation project(":node-driver")
|
|
testImplementation project(path: ':core', configuration: 'testArtifacts')
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_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}"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-jackson'
|
|
manifest {
|
|
attributes 'Automatic-Module-Name': 'net.corda.client.jackson'
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
artifactId jar.baseName
|
|
from components.java
|
|
}
|
|
}
|
|
}
|