mirror of
https://github.com/corda/corda.git
synced 2024-12-25 07:31:10 +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.
46 lines
1.7 KiB
Groovy
46 lines
1.7 KiB
Groovy
apply plugin: 'org.jetbrains.kotlin.jvm'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
|
|
|
cordapp {
|
|
targetPlatformVersion = corda_platform_version.toInteger()
|
|
minimumPlatformVersion 1
|
|
sealing {
|
|
// Cannot seal JAR because other module also defines classes in the package net.corda.vega.analytics
|
|
enabled false
|
|
}
|
|
workflow {
|
|
name "net/corda/vega/flows"
|
|
versionId 1
|
|
vendor "R3"
|
|
licence "Open Source (Apache 2)"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// The SIMM demo CorDapp depends upon Cash CorDapp features
|
|
cordapp project(':finance:workflows')
|
|
cordapp project(':finance:contracts')
|
|
cordapp project(':samples:simm-valuation-demo:contracts-states')
|
|
|
|
// Corda integration dependencies
|
|
cordaProvided project(':core')
|
|
|
|
// Cordapp dependencies
|
|
// Specify your cordapp's dependencies below, including dependent cordapps
|
|
implementation "com.opengamma.strata:strata-basics:$strata_version"
|
|
implementation "com.opengamma.strata:strata-product:$strata_version"
|
|
implementation "com.opengamma.strata:strata-data:$strata_version"
|
|
implementation "com.opengamma.strata:strata-calc:$strata_version"
|
|
implementation "com.opengamma.strata:strata-pricer:$strata_version"
|
|
implementation "com.opengamma.strata:strata-report:$strata_version"
|
|
implementation "com.opengamma.strata:strata-market:$strata_version"
|
|
implementation "com.opengamma.strata:strata-collect:$strata_version"
|
|
implementation "com.opengamma.strata:strata-loader:$strata_version"
|
|
implementation "com.opengamma.strata:strata-math:$strata_version"
|
|
}
|
|
|
|
jar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|