You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 satır
1.3KB

  1. apply plugin: 'java'
  2. apply plugin: 'groovy'
  3. apply plugin: 'idea'
  4. apply plugin: 'eclipse'
  5. apply plugin: 'application'
  6. // Groovy interop
  7. sourceSets.main.java.srcDirs = []
  8. sourceSets.main.groovy.srcDirs += ["src/main/java"]
  9. compileJava.options.encoding = 'UTF-8'
  10. mainClassName = 'fr.slixe.benchmarks.Main'
  11. group 'fr.slixe'
  12. version '1.1.0'
  13. sourceCompatibility = 1.8
  14. targetCompatibility = 1.8
  15. repositories {
  16. maven {
  17. url 'http://wytrem.github.io/maven'
  18. }
  19. maven {
  20. url 'https://paladin-framework.github.io/maven'
  21. }
  22. mavenCentral()
  23. }
  24. dependencies {
  25. implementation(
  26. 'com.sparkjava:spark-core:2.8.0',
  27. 'net.sf.trove4j:trove4j:3.0.3',
  28. 'com.google.code.gson:gson:2.8.5',
  29. 'com.mashape.unirest:unirest-java:1.4.9',
  30. 'org.apache.commons:commons-lang3:3.8.1',
  31. 'org.apache.logging.log4j:log4j-core:2.10.0',
  32. 'com.auth0:java-jwt:3.10.2'
  33. )
  34. implementation('fr.litarvan.paladin:paladin-framework:1.2.0') {
  35. exclude group: 'org.apache.httpcomponents', module: 'httpcore-nio'
  36. exclude group: 'org.apache.logging.log4j', module: 'log4j-core'
  37. }
  38. }
  39. task fatJar(type: Jar) {
  40. from {
  41. configurations
  42. .runtimeClasspath
  43. .findAll { !it.name.endsWith('pom') }
  44. .collect { it.isDirectory() ? it : zipTree(it) }
  45. }
  46. with jar
  47. baseName = 'dero-benchmarks'
  48. manifest {
  49. attributes 'Main-Class': mainClassName
  50. }
  51. }