Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created November 16, 2017 06:43
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 s1monw1/4ffe2f177b36aa7fa8a733fdd98b8d90 to your computer and use it in GitHub Desktop.
Save s1monw1/4ffe2f177b36aa7fa8a733fdd98b8d90 to your computer and use it in GitHub Desktop.
buildscript {
ext.kotlin_version = '1.1.60'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
kotlin {
experimental {
coroutines 'enable'
}
}
compileKotlin {
kotlinOptions.suppressWarnings = true
}
compileKotlin {
kotlinOptions {
suppressWarnings = true
}
}
sourceSets {
main.kotlin.srcDirs += 'src/kotlin'
main.resources.srcDirs += 'src/resources'
}
dependencies {
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.3"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.slf4j:slf4j-api:1.7.14"
compile "ch.qos.logback:logback-classic:1.1.3"
testCompile 'junit:junit:4.11'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
repositories{
mavenCentral()
jcenter()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment