plugins {
    id 'org.jetbrains.kotlin.jvm'
    id 'net.corda.plugins.publish-utils'
    id 'com.jfrog.artifactory'
    id 'java-library'
    id 'idea'
}
apply from: "${rootProject.projectDir}/deterministic.gradle"

description 'Deserializers for the DJVM'

dependencies {
    api project(path: ':core-deterministic', configuration: 'deterministicArtifacts')
    api project(path: ':serialization-deterministic', configuration: 'deterministicArtifacts')
    api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
}

jar {
    archiveBaseName = 'corda-deserializers-djvm'
    archiveClassifier = ''
    manifest {
        attributes('Automatic-Module-Name': 'net.corda.serialization.djvm.deserializers')
        attributes('Sealed': true)
    }
}

publish {
    name jar.archiveBaseName.get()
}

idea {
    module {
        downloadJavadoc = true
        downloadSources = true

        if (project.hasProperty("deterministic_idea_sdk")) {
            jdkName project.property("deterministic_idea_sdk") as String
        }
    }
}
