You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
882 B

7 years ago
7 years ago
7 years ago
  1. plugins {
  2. id 'org.jetbrains.kotlin.jvm' version '1.2.60'
  3. }
  4. repositories {
  5. mavenCentral()
  6. }
  7. dependencies {
  8. compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  9. compile 'org.jsoup:jsoup:1.11.3'
  10. compile 'org.zeroturnaround:zt-zip:1.13'
  11. compile 'org.slf4j:slf4j-simple:1.6.4'
  12. compile 'com.sun.mail:javax.mail:1.6.1'
  13. compile 'info.picocli:picocli:3.4.0'
  14. compile 'com.google.code.gson:gson:2.8.5'
  15. }
  16. compileKotlin {
  17. kotlinOptions {
  18. jvmTarget = "1.8"
  19. }
  20. }
  21. compileTestKotlin {
  22. kotlinOptions {
  23. jvmTarget = "1.8"
  24. }
  25. }
  26. //create a single Jar with all dependencies
  27. task fatJar(type: Jar) {
  28. manifest {
  29. attributes 'Main-Class': 'bandcampcollectiondownloader.BandcampCollectionDownloaderKt'
  30. }
  31. baseName = project.name
  32. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  33. with jar
  34. }