forked from ExpediaGroup/graphql-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
41 lines (38 loc) · 1.4 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
description = "GraphQL Kotlin common utilities to generate a client."
val graphQLJavaVersion: String by project
val kotlinPoetVersion: String by project
val ktorVersion: String by project
val wireMockVersion: String by project
dependencies {
api(project(path = ":graphql-kotlin-ktor-client"))
api(project(path = ":graphql-kotlin-spring-client")) {
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-reactor")
exclude(group = "org.springframework")
exclude(group = "org.springframework.boot")
}
api("com.graphql-java:graphql-java:$graphQLJavaVersion") {
exclude(group = "com.graphql-java", module = "java-dataloader")
}
api("com.squareup:kotlinpoet:$kotlinPoetVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-jackson:$ktorVersion")
testImplementation("com.github.tomakehurst:wiremock-jre8:$wireMockVersion")
}
tasks {
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
counter = "INSTRUCTION"
value = "COVEREDRATIO"
minimum = "0.90".toBigDecimal()
}
limit {
counter = "BRANCH"
value = "COVEREDRATIO"
minimum = "0.75".toBigDecimal()
}
}
}
}
}