-
Notifications
You must be signed in to change notification settings - Fork 59
/
build.gradle.kts
49 lines (41 loc) · 1.11 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
/*
* Copyright 2017-2023 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
import kotlinx.validation.ExperimentalBCVApi
plugins {
id("kotlinx-io-publish") apply false
id("kotlinx-io-dokka")
alias(libs.plugins.kover)
alias(libs.plugins.bcv)
}
allprojects {
properties["DeployVersion"]?.let { version = it }
repositories {
mavenCentral()
}
}
@OptIn(ExperimentalBCVApi::class)
apiValidation {
ignoredProjects.addAll(listOf(
"kotlinx-io-benchmarks",
"kotlinx-io-smoke-tests"
))
klib.enabled = true
}
dependencies {
kover(project(":kotlinx-io-core"))
kover(project(":kotlinx-io-bytestring"))
}
kover {
reports {
verify {
rule {
minBound(95, CoverageUnit.LINE)
// we allow lower branch coverage, because not all checks in the internal code lead to errors
minBound(80, CoverageUnit.BRANCH)
}
}
}
}