build.gradle.kts 1.6 KB

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