build.gradle 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. group 'com.wizzardo.techempower'
  2. version '1.0-SNAPSHOT'
  3. apply plugin: 'java'
  4. apply plugin: 'application'
  5. sourceCompatibility = 1.8
  6. mainClassName = "com.wizzardo.techempower.App"
  7. repositories {
  8. maven {
  9. url "https://oss.sonatype.org/content/repositories/snapshots/"
  10. }
  11. jcenter()
  12. mavenCentral()
  13. }
  14. dependencies {
  15. compile 'com.wizzardo:http:0.2-SNAPSHOT'
  16. compile 'org.postgresql:postgresql:9.4.1212'
  17. compile 'com.zaxxer:HikariCP:2.7.3'
  18. }
  19. //create a single Jar with all dependencies
  20. task fatJar(type: Jar) {
  21. manifest {
  22. attributes(
  23. "Main-Class": mainClassName
  24. )
  25. }
  26. baseName = project.name + '-all'
  27. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  28. with jar
  29. }