build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. application
  3. id("com.github.johnrengelman.shadow") version "7.1.0"
  4. kotlin("jvm") version "1.9.23"
  5. kotlin("plugin.serialization") version "1.9.23"
  6. id("nu.studer.rocker") version "3.0.4"
  7. }
  8. group = "benchmark"
  9. version = "1.0.0"
  10. repositories {
  11. mavenCentral()
  12. }
  13. rocker {
  14. version.set("1.3.0")
  15. configurations {
  16. create("main") {
  17. optimize.set(true)
  18. templateDir.set(file("src/main/resources"))
  19. outputDir.set(file("src/generated/rocker"))
  20. }
  21. }
  22. }
  23. dependencies {
  24. implementation(platform("dev.pellet:pellet-bom:0.0.16"))
  25. implementation("dev.pellet:pellet-server")
  26. implementation("dev.pellet:pellet-logging")
  27. implementation("org.slf4j:slf4j-api:1.7.36")
  28. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
  29. implementation(platform(kotlin("bom")))
  30. implementation(kotlin("stdlib-jdk8"))
  31. implementation("io.vertx:vertx-pg-client:4.5.5")
  32. implementation("io.vertx:vertx-lang-kotlin:4.5.5")
  33. implementation("com.ongres.scram:client:2.1")
  34. }
  35. java {
  36. toolchain {
  37. sourceCompatibility = JavaVersion.VERSION_21
  38. targetCompatibility = JavaVersion.VERSION_21
  39. }
  40. }
  41. tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
  42. kotlinOptions.jvmTarget = "21"
  43. }
  44. application {
  45. mainClass.set("benchmark.BenchmarkKt")
  46. }