apply plugin: 'kotlin' apply plugin: 'application' // We need to set mainClassName before applying the shadow plugin. mainClassName = "net.corda.avalanche.MainKt" apply plugin: 'com.github.johnrengelman.shadow' dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" compile "info.picocli:picocli:$picocli_version" testCompile "junit:junit:$junit_version" } jar.enabled = false shadowJar { baseName = "avalanche" } assemble.dependsOn shadowJar