2019-03-10 16:43:08 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2019-03-24 16:39:13 +00:00
|
|
|
kotlin("jvm") version Config.Versions.kotlin
|
2019-04-14 09:39:11 +00:00
|
|
|
jacoco
|
2019-03-10 16:43:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "norangebit"
|
|
|
|
version = "0.0.1"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
2019-03-22 16:39:08 +00:00
|
|
|
implementation(Config.Libs.arrowCore)
|
|
|
|
implementation(Config.Libs.koin)
|
2019-03-24 16:39:13 +00:00
|
|
|
implementation(Config.Libs.gson)
|
2019-03-22 16:39:08 +00:00
|
|
|
|
|
|
|
testImplementation(Config.Libs.junit)
|
|
|
|
testImplementation(Config.Libs.kluent)
|
2019-03-23 11:32:01 +00:00
|
|
|
testImplementation(Config.Libs.mockk)
|
2019-04-30 17:55:04 +00:00
|
|
|
testImplementation(Config.Libs.jetbrainJunit)
|
2019-05-18 14:20:48 +00:00
|
|
|
testImplementation(Config.Libs.spekDsl)
|
2019-03-10 16:43:08 +00:00
|
|
|
|
2019-04-14 09:39:11 +00:00
|
|
|
testRuntimeOnly(Config.Libs.junitEngine)
|
2019-05-18 14:20:48 +00:00
|
|
|
testRuntimeOnly(Config.Libs.spekRunner)
|
2019-03-10 16:43:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
2019-03-22 16:39:08 +00:00
|
|
|
}
|
|
|
|
|
2019-04-14 09:39:11 +00:00
|
|
|
tasks.getByName<Test>("test") {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register("ktlint", Ktlint::class)
|