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.

36 lines
981 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. testCompile 'org.junit.jupiter:junit-jupiter-api:5.2.0'
  16. testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
  17. }
  18. compileKotlin {
  19. kotlinOptions {
  20. jvmTarget = "1.8"
  21. }
  22. }
  23. compileTestKotlin {
  24. kotlinOptions {
  25. jvmTarget = "1.8"
  26. }
  27. }
  28. //create a single Jar with all dependencies
  29. task fatJar(type: Jar) {
  30. manifest {
  31. attributes 'Main-Class': 'bandcampcollectiondownloader.MainKt'
  32. }
  33. baseName = project.name
  34. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  35. with jar
  36. }