build.gradle 676 B

1234567891011121314151617181920212223242526272829303132
  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. jcenter()
  9. mavenCentral()
  10. }
  11. dependencies {
  12. compile 'com.wizzardo:http:0.2'
  13. compile 'org.postgresql:postgresql:9.4.1212'
  14. compile 'com.zaxxer:HikariCP:2.7.3'
  15. }
  16. //create a single Jar with all dependencies
  17. task fatJar(type: Jar) {
  18. manifest {
  19. attributes(
  20. "Main-Class": mainClassName
  21. )
  22. }
  23. baseName = project.name + '-all'
  24. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  25. with jar
  26. }