plugins { application kotlin("jvm") version "1.6.10" id("org.jetbrains.kotlin.plugin.serialization") version "1.6.21" id("com.github.johnrengelman.shadow") version "7.1.2" } group = "org.jetbrains.ktor" version = "1.0-SNAPSHOT" repositories { mavenCentral() } application { mainClass.set("MainKt") } dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2") implementation("io.ktor:ktor-server-netty:2.0.1") implementation("io.ktor:ktor-server-html-builder-jvm:2.0.1") implementation("io.ktor:ktor-server-default-headers-jvm:2.0.1") implementation("io.vertx:vertx-pg-client:4.2.3") implementation("io.vertx:vertx-lang-kotlin:4.2.3") implementation("io.vertx:vertx-lang-kotlin-coroutines:4.2.3") } tasks.withType().configureEach { kotlinOptions.jvmTarget = "11" } tasks.shadowJar { archiveBaseName.set("ktor-pgclient") archiveClassifier.set("") archiveVersion.set("") }