build.gradle 733 B

12345678910111213141516171819202122232425262728293031323334
  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. mavenCentral()
  12. // jcenter()
  13. }
  14. dependencies {
  15. compile 'com.wizzardo:http:0.3'
  16. compile 'com.wizzardo:reactive-pg-client:0.10.2.1'
  17. }
  18. //create a single Jar with all dependencies
  19. task fatJar(type: Jar) {
  20. manifest {
  21. attributes(
  22. "Main-Class": mainClassName
  23. )
  24. }
  25. baseName = project.name + '-all'
  26. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  27. with jar
  28. }