forked from Kotlin/kotlinx.collections.immutable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (40 loc) · 1.16 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
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.13.2"
}
infra {
publishing {
include(":kotlinx-collections-immutable")
libraryRepoUrl = "https://github.com/Kotlin/kotlinx.collections.immutable"
sonatype {
libraryStagingRepoDescription = project.name
}
}
}
apiValidation {
ignoredProjects += listOf(
"benchmarks",
"runner",
)
}
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")
}