apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'corda.common-publishing'

description 'CLI Utilities'

dependencies {
    implementation project(":core")
    implementation project(":common-logging")

    implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
    implementation "info.picocli:picocli:$picocli_version"
    implementation "commons-io:commons-io:$commons_io_version"
    implementation "com.jcabi:jcabi-manifests:$jcabi_manifests_version"

    // JAnsi: for drawing things to the terminal in nicely coloured ways.
    implementation "org.fusesource.jansi:jansi:$jansi_version"

    implementation "org.slf4j:slf4j-api:$slf4j_version"
}

jar {
    archiveBaseName = "corda-tools-cliutils"
}

publishing {
    publications {
        maven(MavenPublication) {
            artifactId jar.baseName
            from components.java
        }
    }
}
