build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import java.time.Instant
  2. plugins {
  3. id 'java'
  4. id 'application'
  5. }
  6. group projectGroup
  7. version projectVersion
  8. jar.archiveFileName = "analytics.jar"
  9. application {
  10. mainClass = 'cz.senslog.analytics.app.Main'
  11. }
  12. repositories {
  13. mavenLocal()
  14. mavenCentral()
  15. }
  16. java {
  17. sourceCompatibility = JavaVersion.VERSION_17
  18. targetCompatibility = JavaVersion.VERSION_17
  19. }
  20. build {
  21. doLast {
  22. ant.propertyfile(file: "gradle.properties") {
  23. entry( key: "buildVersion", value: Instant.now().getEpochSecond())
  24. }
  25. }
  26. }
  27. jar {
  28. duplicatesStrategy = DuplicatesStrategy.EXCLUDE
  29. manifest {
  30. attributes 'Implementation-Title': 'SensLog Analytics',
  31. 'Implementation-Version': version,
  32. 'Main-Class': 'cz.senslog.analytics.app.Main'
  33. }
  34. from {
  35. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  36. }
  37. }
  38. test {
  39. useJUnitPlatform()
  40. }
  41. dependencies {
  42. implementation 'org.apache.logging.log4j:log4j-api:2.22.0'
  43. implementation 'org.apache.logging.log4j:log4j-core:2.22.0'
  44. implementation 'io.vertx:vertx-core:4.5.7'
  45. implementation 'io.vertx:vertx-web:4.5.7'
  46. implementation 'io.vertx:vertx-web-openapi:4.5.7'
  47. implementation 'io.vertx:vertx-auth-jwt:4.5.7'
  48. implementation 'io.vertx:vertx-pg-client:4.5.7'
  49. implementation 'org.postgresql:postgresql:42.7.3'
  50. implementation 'com.ongres.scram:client:2.1'
  51. testImplementation platform('org.junit:junit-bom:5.9.2')
  52. testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
  53. }