build.gradle.kts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. mavenLocal {
  14. content {
  15. includeModule("org.sirekanyan", "telegram-bots")
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation("org.sirekanyan:telegram-bots:8.0.0")
  21. implementation("org.telegram:telegrambots-client:8.0.0")
  22. implementation("io.ktor:ktor-client-cio:3.0.2")
  23. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
  24. implementation("org.jetbrains.exposed:exposed-jdbc:0.57.0")
  25. implementation("org.jetbrains.lets-plot:lets-plot-common:4.5.2")
  26. implementation("org.jetbrains.lets-plot:lets-plot-image-export:4.5.2")
  27. implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.9.2")
  28. implementation("org.postgresql:postgresql:42.7.4")
  29. implementation("org.slf4j:slf4j-simple:2.0.16")
  30. testImplementation("junit:junit:4.13.2")
  31. }
  32. application {
  33. mainClass.set("com.sirekanyan.andersrobot.Main")
  34. if (hasProperty("debug")) {
  35. applicationDefaultJvmArgs = listOf("-Ddebug")
  36. }
  37. }
  38. distributions {
  39. main {
  40. contents {
  41. from("bot.properties")
  42. from("data") { into("data") }
  43. }
  44. }
  45. }
  46. kotlin {
  47. jvmToolchain(17)
  48. compilerOptions {
  49. jvmTarget = JvmTarget.JVM_11
  50. allWarningsAsErrors = true
  51. }
  52. }
  53. java {
  54. sourceCompatibility = JavaVersion.VERSION_11
  55. targetCompatibility = JavaVersion.VERSION_11
  56. }