build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. val kotlinVersion = "1.7.20"
  3. kotlin("jvm") version kotlinVersion
  4. kotlin("plugin.serialization") version kotlinVersion
  5. id("org.sirekanyan.version-checker") version "1.0.0"
  6. application
  7. }
  8. group = "com.sirekanyan"
  9. version = "0.1"
  10. repositories {
  11. mavenCentral()
  12. }
  13. dependencies {
  14. implementation("org.telegram:telegrambots:6.1.0")
  15. implementation("io.ktor:ktor-client-cio:2.1.2")
  16. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
  17. implementation("org.jetbrains.exposed:exposed-jdbc:0.40.1")
  18. implementation("org.jetbrains.lets-plot:lets-plot-common:2.5.0")
  19. implementation("org.jetbrains.lets-plot:lets-plot-image-export:2.5.0")
  20. implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.1.0")
  21. implementation("org.postgresql:postgresql:42.5.0")
  22. implementation("org.slf4j:slf4j-simple:2.0.3")
  23. testImplementation("junit:junit:4.13.2")
  24. }
  25. application {
  26. mainClass.set("com.sirekanyan.andersrobot.Main")
  27. if (hasProperty("debug")) {
  28. applicationDefaultJvmArgs = listOf("-Ddebug")
  29. }
  30. }
  31. distributions {
  32. main {
  33. contents {
  34. from("bot.properties")
  35. from("data") { into("data") }
  36. }
  37. }
  38. }
  39. tasks {
  40. compileKotlin {
  41. kotlinOptions {
  42. jvmTarget = "1.8"
  43. allWarningsAsErrors = true
  44. }
  45. }
  46. }