Skip to content

Instantly share code, notes, and snippets.

@gedorinku
Last active December 9, 2017 15:21
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 gedorinku/c9dfdfbbbcbde0b8d774998927223153 to your computer and use it in GitHub Desktop.
Save gedorinku/c9dfdfbbbcbde0b8d774998927223153 to your computer and use it in GitHub Desktop.
Ktorの記事で使ったやつその1
buildscript {
ext.kotlin_version = '1.2.0'
ext.ktor_version = '0.9.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'io.github.gedorinku'
version '1.0-SNAPSHOT'
apply plugin: 'kotlin'
repositories {
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment