build.gradle.kts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. application
  3. kotlin("jvm") version "1.6.10"
  4. id("org.jetbrains.kotlin.plugin.serialization") version "1.6.21"
  5. id("com.github.johnrengelman.shadow") version "7.1.2"
  6. }
  7. group = "org.jetbrains.ktor"
  8. version = "1.0-SNAPSHOT"
  9. repositories {
  10. mavenCentral()
  11. }
  12. application {
  13. mainClass.set("MainKt")
  14. }
  15. dependencies {
  16. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  17. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
  18. implementation("io.ktor:ktor-server-netty:2.0.1")
  19. implementation("io.ktor:ktor-server-html-builder-jvm:2.0.1")
  20. implementation("io.ktor:ktor-server-default-headers-jvm:2.0.1")
  21. implementation("io.vertx:vertx-pg-client:4.2.3")
  22. implementation("io.vertx:vertx-lang-kotlin:4.2.3")
  23. implementation("io.vertx:vertx-lang-kotlin-coroutines:4.2.3")
  24. }
  25. tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
  26. kotlinOptions.jvmTarget = "11"
  27. }
  28. tasks.shadowJar {
  29. archiveBaseName.set("ktor-pgclient")
  30. archiveClassifier.set("")
  31. archiveVersion.set("")
  32. }