2018-02-26 22:03:33 +01:00
|
|
|
apply plugin: 'java-library'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'jacoco'
|
|
|
|
apply from: '../gradle_scripts/code_quality.gradle'
|
|
|
|
|
|
|
|
dependencies {
|
2018-03-10 22:20:34 +01:00
|
|
|
api project(':domain')
|
2018-02-26 22:03:33 +01:00
|
|
|
api other.kotlinStdlib
|
2018-03-10 22:20:34 +01:00
|
|
|
api other.twitterSerial
|
|
|
|
|
|
|
|
testImplementation testing.junit
|
|
|
|
testImplementation testing.kotlinJunit
|
|
|
|
testImplementation testing.mockito
|
|
|
|
testImplementation testing.mockitoInline
|
|
|
|
testImplementation testing.mockitoKotlin
|
|
|
|
testImplementation testing.kluent
|
2018-02-26 22:03:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jacoco {
|
|
|
|
toolVersion(versions.jacoco)
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
|
|
|
jacocoExclude = []
|
|
|
|
}
|
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
html.enabled true
|
|
|
|
csv.enabled false
|
|
|
|
xml.enabled true
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
classDirectories = files(classDirectories.files.collect {
|
|
|
|
fileTree(dir: it, excludes: jacocoExclude)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test.finalizedBy jacocoTestReport
|
|
|
|
test {
|
|
|
|
jacoco {
|
|
|
|
excludes += jacocoExclude
|
|
|
|
}
|
|
|
|
}
|