2019-02-03 12:13:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
group 'com.baeldung.ktor'
|
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
|
|
|
|
buildscript {
|
2019-04-18 22:40:33 -04:00
|
|
|
ext.kotlin_version = '1.3.30'
|
2019-02-03 12:13:03 -05:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
mainClassName = 'APIServer.kt'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
|
|
|
|
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
maven { url "https://dl.bintray.com/kotlin/ktor" }
|
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
main{
|
|
|
|
kotlin{
|
|
|
|
srcDirs 'com/baeldung/ktor'
|
|
|
|
}
|
|
|
|
}
|
2019-04-18 22:40:33 -04:00
|
|
|
}
|
2019-02-03 12:13:03 -05:00
|
|
|
|
2019-04-18 22:40:33 -04:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed"
|
|
|
|
}
|
2019-02-03 12:13:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-18 22:40:33 -04:00
|
|
|
implementation "ch.qos.logback:logback-classic:1.2.1"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
testImplementation 'org.assertj:assertj-core:3.12.2'
|
|
|
|
testImplementation 'org.mockito:mockito-core:2.27.0'
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5:${kotlin_version}"
|
|
|
|
}
|