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

dependencies {
    implementation group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: kotlin_version

    implementation group: "com.typesafe", name: "config", version: typesafe_config_version

    implementation project(":common-validation")
    
    testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
    testImplementation "junit:junit:$junit_version"

    testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
    testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
    testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"

    testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test", version: kotlin_version
    testImplementation group: "org.assertj", name: "assertj-core", version: assertj_version
}

jar {
    baseName 'corda-common-configuration-parsing'
}

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

