Skip to content

Instantly share code, notes, and snippets.

@saltyJeff
Created September 7, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saltyJeff/fd14ae82106c7690470a953e04a4e4e7 to your computer and use it in GitHub Desktop.
Save saltyJeff/fd14ae82106c7690470a953e04a4e4e7 to your computer and use it in GitHub Desktop.
Ktor Gradle
buildscript {
ext.kotlin_version = '1.2.61'
ext.ktor_version = '0.9.4'
ext.koin_version = '1.0.0-RC-2'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
dependencies {
//ktor
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile "io.ktor:ktor-gson:$ktor_version"
compile "io.ktor:ktor-auth:$ktor_version"
//koin (dependency injection library, but app still crashes if I comment all the DI stuff out)
compile "org.koin:koin-core:$koin_version"
compile "org.koin:koin-ktor:$koin_version"
testCompile "org.koin:koin-test:$koin_version"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment