41 lines
853 B
Kotlin
41 lines
853 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
val spekVersion = "2.0.12"
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
implementation("com.google.code.gson:gson:2.8.6")
|
|
api("org.slf4j:slf4j-api:1.7.30")
|
|
api("io.netty:netty-buffer:4.1.50.Final")
|
|
|
|
testImplementation("io.strikt:strikt-core:0.26.1")
|
|
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
|
|
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
|
|
testRuntimeOnly(kotlin("reflect"))
|
|
}
|
|
|
|
tasks {
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform {
|
|
includeEngines("spek2")
|
|
}
|
|
}
|
|
}
|