plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version '1.3.21' } group 'io.github.chronosx88' version '0.1' task fatJar(type: Jar) { manifest { attributes( 'Main-Class': 'io.github.chronosx88.dhtBootstrap.MainKt' ) } baseName = project.name + '-all' from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } with jar } sourceCompatibility = 1.8 repositories { mavenCentral() maven { url "http://tomp2p.net/dev/mvn/" } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" implementation 'net.tomp2p:tomp2p-all:5.0-Beta8' implementation 'org.slf4j:slf4j-log4j12:+' } compileKotlin { kotlinOptions.jvmTarget = "1.8" } compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } jar { manifest { attributes( 'Main-Class': 'io.github.chronosx88.dhtBootstrap.MainKt' ) } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } }