apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'net.corda.plugins.quasar-utils'
apply plugin: 'com.jfrog.artifactory'

dependencies {
    cordaCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

    // Corda integration dependencies
    cordaCompile project(':node')

    // For the MySQLUniquenessProvider
    compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'

    testCompile "junit:junit:$junit_version"
    testCompile project(':node-driver')
}

idea {
    module {
        downloadJavadoc = true // defaults to false
        downloadSources = true
    }
}

publish {
    name 'corda-notary-mysql'
}

jar {
    baseName 'corda-notary-mysql'
}

cordapp {
    info {
        name "net/corda/notary/mysql"
        vendor "R3"
        targetPlatformVersion corda_platform_version.toInteger()
        minimumPlatformVersion 1
    }
}