-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
71 lines (59 loc) · 1.42 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(Plugins.kotlinJvm) version Libs.kotlinVersion apply false
id(Plugins.kotlinKover) version Plugins.kotlinKoverVersion
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://repos.spring.io/plugins-release")
}
maven {
url = uri("s3://porter-maven/releases")
authentication {
create<AwsImAuthentication>("awsIm")
}
}
}
}
subprojects {
group = "in.porter.calldictator"
version = "0.1.0"
apply(plugin = Plugins.kotlinJvm)
apply(plugin = Plugins.kotlinKover)
dependencies {
"implementation"(Libs.KotlinUtils.commons)
"testImplementation"(Libs.KotlinUtils.testing)
}
kover{
verify{
rule{
isEnabled = true
name = "Line Coverage of Tests must be more than 80%"
overrideClassFilter{
excludes += listOf(
"**/*_MembersInjector.class",
"**/Dagger*Component.class",
"**/Dagger*Component\$Builder.class",
"**/*_*Factory.class",
)
}
bound {
minValue = 80
}
}
}
}
tasks.withType<Test> {
@Suppress("UnstableApiUsage")
useJUnitPlatform()
}
tasks.named<KotlinCompile>("compileKotlin") {
kotlinOptions.jvmTarget = "1.8"
}
tasks.named<KotlinCompile>("compileTestKotlin") {
kotlinOptions.jvmTarget = "1.8"
}
}