Store/middleware/build.gradle
Brian Plummer 31ec45caa6 middleware conversion to kotlin (#351)
* convert middleware to kotlin, start with tests

* convert source

* pr feedback, change mocks to lateinit

* change compile to implementation

* change rest of compile to use implementation, and append version of kotlin

* remove obsolete constructor checks

* pr feedback convert one liners to assignments
2018-07-11 14:02:33 -04:00

48 lines
No EOL
1.1 KiB
Groovy

buildscript {
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
plugins {
id 'org.jetbrains.kotlin.jvm'
}
apply plugin: 'java'
group = GROUP
version = VERSION_NAME
dependencies {
implementation project(path: ':cache')
implementation project(path: ':store')
implementation project(path: ':filesystem')
implementation libraries.okio
implementation libraries.gson
compileOnly libraries.jsr305
compileOnly libraries.javax
testImplementation libraries.mockito
testImplementation libraries.assertJ
testImplementation libraries.junit
testImplementation libraries.guava
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
apply from: rootProject.file("gradle/maven-push.gradle")
apply from: rootProject.file("gradle/checkstyle.gradle")
apply from: rootProject.file("gradle/pmd.gradle")
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}