buildscript {

    ext.tornadofx_version = '1.7.15'
    ext.controlsfx_version = '8.40.12'


    repositories {
        mavenLocal()
        mavenCentral()
        jcenter()
    }

    dependencies {
        classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
    }
}

apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'

dependencies {
    compile "com.microsoft.azure:azure:1.8.0"
    compile "com.github.docker-java:docker-java:3.0.6"

    testCompile "org.jetbrains.kotlin:kotlin-test"
    testCompile "org.jetbrains.kotlin:kotlin-test-junit"

    compile project(':node-api')
    compile project(':node')

    compile "com.typesafe:config:$typesafe_config_version"
    compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version"
    compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
    compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
    compile 'info.picocli:picocli:3.0.1'

    // TornadoFX: A lightweight Kotlin framework for working with JavaFX UI's.
    compile "no.tornado:tornadofx:$tornadofx_version"

    // ControlsFX: Extra controls for JavaFX.
    compile "org.controlsfx:controlsfx:$controlsfx_version"
}

shadowJar {
    baseName = 'network-bootstrapper'
    classifier = null
    version = null
    zip64 true
    mainClassName = 'net.corda.bootstrapper.Main'
}

task buildNetworkBootstrapper(dependsOn: shadowJar) {
}

configurations {
    compile.exclude group: "log4j", module: "log4j"
    compile.exclude group: "org.apache.logging.log4j"
}