buildscript { ext.kotlin_version = '1.2.21' repositories { jcenter() mavenCentral() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } plugins { id "com.github.johnrengelman.shadow" version "1.2.4" } apply plugin: 'kotlin' sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. repositories { jcenter() } dependencies { compile project(':api') compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3' compile group: 'com.google.code.gson', name: 'gson', version: '+' compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: project.kotlin_version } compileKotlin { kotlinOptions { jvmTarget = "1.8" } } shadowJar { classifier '' dependencies { include project(":api") } }