testing/build.gradle.kts (33 lines of code) (raw):
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
extra["kotlinVersion"] = "1.3.72"
val kotlinVersion: String by extra
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
val kotlinVersion: String by extra
plugins {
java
kotlin("jvm") version "1.3.72"
`java-gradle-plugin`
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.googlecode.json-simple:json-simple:1.1")
testCompile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
testCompile("junit:junit:4.12")
testCompile("org.jdom:jdom2:2.0.6")
testCompile(gradleTestKit())
testCompile(project(":plugin"))
testCompile(project(":cli"))
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}