-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathbuild.gradle.kts
59 lines (53 loc) · 1.82 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
plugins {
id("kotlinx.team.infra") version "0.4.0-dev-81"
kotlin("multiplatform") apply false
id("org.jetbrains.kotlinx.kover") version "0.8.0-Beta2"
}
infra {
teamcity {
}
publishing {
include(":kotlinx-datetime")
libraryRepoUrl = "https://github.com/Kotlin/kotlinx-datetime"
sonatype {
libraryStagingRepoDescription = project.name
}
}
}
val mainJavaToolchainVersion by ext(project.property("java.mainToolchainVersion"))
val modularJavaToolchainVersion by ext(project.property("java.modularToolchainVersion"))
allprojects {
repositories {
addTrainRepositories(project)
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
// outputs the compiler version to logs so we can check whether the train configuration applied
kotlinOptions.freeCompilerArgs += "-version"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile>().configureEach {
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
}
}
// Disable NPM to NodeJS nightly compatibility check.
// Drop this when NodeJs version that supports latest Wasm become stable
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}
kover {
reports {
verify {
rule {
// requirement for a minimum lines coverage of 85%
minBound(85)
}
}
}
}
dependencies {
kover(project(":kotlinx-datetime"))
kover(project(":kotlinx-datetime-serialization"))
}