apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'

repositories {
    mavenCentral()
}

dependencies {
    implementation project(":common-logging")
    implementation project(":tools:cliutils")
    implementation "info.picocli:picocli:$picocli_version"
    implementation "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"

    testCompile "junit:junit:4.12"
}

jar {
    enabled = false
    classifier = 'ignore'
}

shadowJar {
    baseName = "corda-tools-error-utils"
    manifest {
        attributes(
                'Main-Class': "net.corda.errorUtilities.ErrorToolKt"
        )
    }
}

assemble.dependsOn shadowJar