-
Notifications
You must be signed in to change notification settings - Fork 62
/
build.gradle.kts
53 lines (44 loc) · 1.26 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
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21")
}
}
plugins {
id("kotlinx.team.infra") version "0.4.0-dev-80"
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.16.3"
}
infra {
publishing {
include(":kotlinx-collections-immutable")
libraryRepoUrl = "https://github.com/Kotlin/kotlinx.collections.immutable"
sonatype {
libraryStagingRepoDescription = project.name
}
}
}
apiValidation {
ignoredProjects += listOf(
"benchmarks",
"runner",
)
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}
allprojects {
repositories {
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
if (this is KotlinJsCompile) {
kotlinOptions.freeCompilerArgs += "-Xwasm-enable-array-range-checks"
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}