plugins {
    id 'corda.common-publishing'
    id 'corda.common-library'
}

description 'Membership schema validation library'

ext.cordaEnableFormatting = true

dependencies {
    compileOnly "org.osgi:osgi.annotation"
    compileOnly 'org.osgi:org.osgi.service.component.annotations'

    implementation platform("net.corda:corda-api:$cordaApiVersion")
    implementation 'org.jetbrains.kotlin:kotlin-osgi-bundle'
    implementation "net.corda:corda-base"
    api "net.corda:corda-membership-schema"

    implementation libs.jackson.databind
    implementation "com.networknt:json-schema-validator:$networkntJsonSchemaVersion"
    constraints {
        implementation("com.ethlo.time:itu:$comEthloTimeItuVersion") {
            because "Version bundled with current version of 'com.networknt:json-schema-validator' does not have OSGi manifest."
        }
    }
    implementation project(':libs:membership:membership-common')
}