diff --git a/build.gradle b/build.gradle index cd2ccf7..cd4c500 100644 --- a/build.gradle +++ b/build.gradle @@ -22,4 +22,14 @@ compileTestKotlin { kotlinOptions { jvmTarget = "1.8" } +} + +//create a single Jar with all dependencies +task fatJar(type: Jar) { + manifest { + attributes 'Main-Class': 'bandcampcollectiondownloader.BandcampCollectionDownloaderKt' + } + baseName = project.name + '-all' + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + with jar } \ No newline at end of file