apply plugin : 'kotlin'
apply plugin : 'application'

mainClassName = "net.corda.blobwriter.BlobWriter.kt"

dependencies {
    implementation project(':core')
    implementation project(':tools:cliutils')
    implementation project(":common-logging")
    implementation project(':serialization')

    implementation "org.slf4j:jul-to-slf4j:$slf4j_version"
    implementation "org.apache.logging.log4j:log4j-slf4j2-impl:$log4j_version"
}

configurations.implementation.canBeResolved = true

jar {
    from (configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }) {
        exclude "META-INF/*.SF"
        exclude "META-INF/*.DSA"
        exclude "META-INF/*.RSA"
    }
    baseName = "blobwriter"
    manifest {
        attributes(
                'Main-Class': 'net.corda.blobwriter.BlobWriterKt'
        )
    }
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
