build.gradle 755 B

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'java'
  2. apply plugin: 'application'
  3. group 'com.lostsys.test.javalin'
  4. version '1.0-SNAPSHOT'
  5. mainClassName = 'com.lostsys.test.javalin.Bench'
  6. sourceCompatibility = JavaVersion.VERSION_11
  7. targetCompatibility = JavaVersion.VERSION_11
  8. repositories {
  9. mavenCentral()
  10. }
  11. dependencies {
  12. compile 'io.javalin:javalin:2.8.0'
  13. compile "com.fasterxml.jackson.core:jackson-databind:2.9.9"
  14. compile "org.slf4j:slf4j-simple:1.8.0-beta4"
  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. }