plugins {
    id 'net.corda.plugins.cordapp-cpb2'
}

description 'Corda Sandbox CPK One'

group 'com.example.sandbox'

cordapp {
    targetPlatformVersion = platformVersion.toInteger()
    workflow {
        name 'Sandbox CPK-1'
        versionId 1
        vendor 'R3'
    }
}

dependencies {
    cpb project(':libs:sandbox-internal:sandbox-cpk-two')
    cordaProvided platform("net.corda:corda-api:$cordaApiVersion")
    compileOnly "org.osgi:org.osgi.service.component.annotations"
    implementation project(':libs:sandbox-internal:sandbox-cpk-library')
    cordaProvided 'org.jetbrains.kotlin:kotlin-osgi-bundle'
    cordaProvided 'org.osgi:osgi.core'
    cordaProvided 'net.corda:corda-application'
    cordaProvided 'org.slf4j:slf4j-api'
    // We use version 2.10.10 here, and version 2.10.9 in CPK Two, to show that multiple versions of a library can
    // co-exist in a sandbox group.
    implementation 'joda-time:joda-time:2.10.10'
}
