Created
September 30, 2022 15:42
-
-
Save adamcameron/06a7ba5a91ba9486a069922322795301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val ktor_version: String by project | |
val kotlin_version: String by project | |
val logback_version: String by project | |
plugins { | |
application | |
kotlin("jvm") version "1.7.20" | |
id("io.ktor.plugin") version "2.1.2" | |
} | |
group = "com.example" | |
version = "0.0.1" | |
application { | |
mainClass.set("com.example.ApplicationKt") | |
val isDevelopment: Boolean = project.ext.has("development") | |
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment") | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
implementation("io.ktor:ktor-server-default-headers-jvm:$ktor_version") | |
implementation("io.ktor:ktor-server-core-jvm:$ktor_version") | |
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version") | |
implementation("ch.qos.logback:logback-classic:$logback_version") | |
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version") | |
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment