build.gradle.kts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. application
  3. id("com.github.johnrengelman.shadow") version "7.1.0"
  4. kotlin("jvm") version "1.6.21"
  5. kotlin("plugin.serialization") version "1.6.21"
  6. }
  7. group = "benchmark"
  8. version = "1.0.0"
  9. repositories {
  10. mavenCentral()
  11. }
  12. dependencies {
  13. implementation("dev.pellet:pellet-server:0.0.7")
  14. implementation("dev.pellet:pellet-logging:0.0.7")
  15. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
  16. implementation(platform(kotlin("bom")))
  17. implementation(kotlin("stdlib-jdk8"))
  18. implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1"))
  19. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
  20. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8")
  21. }
  22. java {
  23. toolchain {
  24. sourceCompatibility = JavaVersion.VERSION_18
  25. targetCompatibility = JavaVersion.VERSION_18
  26. }
  27. }
  28. tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
  29. kotlinOptions.jvmTarget = "18"
  30. }
  31. application {
  32. mainClass.set("benchmark.BenchmarkKt")
  33. }