build.gradle.kts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. val ktor_version: String by project
  2. val kotlin_version: String by project
  3. val logback_version: String by project
  4. val prometeus_version: String by project
  5. plugins {
  6. application
  7. kotlin("jvm") version "1.6.10"
  8. id("org.jetbrains.kotlin.plugin.serialization") version "1.6.10"
  9. id("com.github.johnrengelman.shadow") version "7.0.0"
  10. }
  11. group = "ru.mephi"
  12. version = "0.0.1"
  13. application {
  14. mainClass.set("ru.mephi.ApplicationKt")
  15. }
  16. tasks {
  17. shadowJar {
  18. archiveBaseName.set("alumni")
  19. archiveFileName.set("${project.name}-${project.version}.jar")
  20. manifest {
  21. attributes(Pair("Main-Class", "ru.mephi.ApplicationKt"))
  22. }
  23. }
  24. }
  25. repositories {
  26. mavenCentral()
  27. }
  28. dependencies {
  29. implementation("io.ktor:ktor-server-core:$ktor_version")
  30. implementation("io.ktor:ktor-auth:$ktor_version")
  31. implementation("io.ktor:ktor-auth-jwt:$ktor_version")
  32. implementation("io.ktor:ktor-server-sessions:$ktor_version")
  33. implementation("io.ktor:ktor-server-host-common:$ktor_version")
  34. implementation("io.ktor:ktor-metrics:$ktor_version")
  35. implementation("io.ktor:ktor-metrics-micrometer:$ktor_version")
  36. implementation("io.micrometer:micrometer-registry-prometheus:$prometeus_version")
  37. implementation("io.ktor:ktor-serialization:$ktor_version")
  38. implementation("io.ktor:ktor-server-netty:$ktor_version")
  39. implementation("ch.qos.logback:logback-classic:$logback_version")
  40. testImplementation("io.ktor:ktor-server-tests:$ktor_version")
  41. testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
  42. }