54 lines
1.2 KiB
Groovy
54 lines
1.2 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = "1.2.21"
|
|
}
|
|
|
|
plugins {
|
|
id "org.jetbrains.kotlin.jvm" version "1.2.21" apply false
|
|
}
|
|
|
|
allprojects{
|
|
apply plugin: 'idea'
|
|
apply plugin: 'java'
|
|
apply plugin: "kotlin"
|
|
|
|
group = 'inr.numass'
|
|
version = '1.0.0'
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
//maven { url "https://jitpack.io" }
|
|
maven { url "http://dl.bintray.com/kotlin/ktor" }
|
|
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
|
|
}
|
|
|
|
dependencies{
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
testCompile group: 'junit', name: 'junit', version: '4.+'
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
javaParameters = true
|
|
}
|
|
}
|
|
|
|
compileTestKotlin{
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
javaParameters = true
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
experimental {
|
|
coroutines "enable"
|
|
}
|
|
}
|
|
} |