Browse Source

Add gradle task to build jar with all dependencies

master
Gwendal 7 years ago
parent
commit
a108ad4186
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      build.gradle

+ 10
- 0
build.gradle View File

@ -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
}

Loading…
Cancel
Save