build.gradle.kts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import org.jetbrains.kotlin.gradle.dsl.JvmTarget
  2. plugins {
  3. val kotlinVersion = "2.1.0"
  4. kotlin("jvm") version kotlinVersion
  5. kotlin("plugin.serialization") version kotlinVersion
  6. id("org.sirekanyan.version-checker") version "1.0.13"
  7. application
  8. }
  9. group = "com.sirekanyan"
  10. version = "1.0"
  11. repositories {
  12. mavenCentral()
  13. }
  14. dependencies {
  15. implementation("org.telegram:telegrambots:6.9.7.1")
  16. implementation("io.ktor:ktor-client-cio:3.0.2")
  17. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
  18. implementation("org.jetbrains.exposed:exposed-jdbc:0.57.0")
  19. implementation("org.jetbrains.lets-plot:lets-plot-common:4.5.2")
  20. implementation("org.jetbrains.lets-plot:lets-plot-image-export:4.5.2")
  21. implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.9.2")
  22. implementation("org.postgresql:postgresql:42.7.4")
  23. implementation("org.slf4j:slf4j-simple:2.0.16")
  24. testImplementation("junit:junit:4.13.2")
  25. }
  26. application {
  27. mainClass.set("com.sirekanyan.andersrobot.Main")
  28. if (hasProperty("debug")) {
  29. applicationDefaultJvmArgs = listOf("-Ddebug")
  30. }
  31. }
  32. distributions {
  33. main {
  34. contents {
  35. from("bot.properties")
  36. from("data") { into("data") }
  37. }
  38. }
  39. }
  40. kotlin {
  41. jvmToolchain(17)
  42. compilerOptions {
  43. jvmTarget = JvmTarget.JVM_1_8
  44. allWarningsAsErrors = true
  45. }
  46. }
  47. java {
  48. sourceCompatibility = JavaVersion.VERSION_1_8
  49. targetCompatibility = JavaVersion.VERSION_1_8
  50. }