build.gradle 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. group 'com.wizzardo.techempower'
  2. version '1.0-SNAPSHOT'
  3. apply plugin: 'java'
  4. apply plugin: 'application'
  5. sourceCompatibility = JavaVersion.VERSION_11
  6. targetCompatibility = JavaVersion.VERSION_11
  7. mainClassName = "com.wizzardo.techempower.App"
  8. repositories {
  9. maven {
  10. url "https://oss.sonatype.org/content/repositories/snapshots/"
  11. }
  12. mavenCentral()
  13. // jcenter()
  14. }
  15. dependencies {
  16. compile 'com.wizzardo:http:0.4'
  17. compile 'com.wizzardo:reactive-pg-client:0.10.2.1'
  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. }