build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. plugins {
  2. id 'java'
  3. }
  4. group projectGroup
  5. version projectVersion
  6. repositories {
  7. mavenLocal()
  8. mavenCentral()
  9. }
  10. test {
  11. useJUnitPlatform()
  12. }
  13. java {
  14. sourceCompatibility = JavaVersion.VERSION_11
  15. targetCompatibility = JavaVersion.VERSION_11
  16. }
  17. jar {
  18. duplicatesStrategy = DuplicatesStrategy.EXCLUDE
  19. manifest {
  20. attributes(
  21. 'Main-Class': 'cz.senslog.watchdog.app.Main'
  22. )
  23. }
  24. from {
  25. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  26. }
  27. }
  28. dependencies {
  29. implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.22.1'
  30. implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.22.1'
  31. implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.22.1'
  32. implementation group: 'com.beust', name: 'jcommander', version: '1.78'
  33. implementation group: 'org.yaml', name: 'snakeyaml', version: '2.2'
  34. implementation group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.1.3'
  35. implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
  36. implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.10'
  37. implementation group: 'org.jdbi', name: 'jdbi3-postgres', version: '3.12.2'
  38. implementation group: 'org.jdbi', name: 'jdbi3-jodatime2', version: '3.12.2'
  39. implementation group: 'com.zaxxer', name: 'HikariCP', version: '3.4.2'
  40. implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.27'
  41. implementation group: 'javax.mail', name: 'javax.mail-api', version: '1.6.2'
  42. implementation group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2'
  43. testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.0'
  44. }