-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathbuild.gradle.kts
63 lines (53 loc) · 1.56 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
60
61
62
63
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.properties["kotlin_version"]}")
}
}
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()
val kotlinRepoUrl = providers.gradleProperty("kotlin_repo_url").orNull
if (kotlinRepoUrl != null) {
maven(kotlinRepoUrl)
}
}
tasks.withType(KotlinCompilationTask::class).configureEach {
compilerOptions {
allWarningsAsErrors = true
freeCompilerArgs.add("-Xexpect-actual-classes")
}
if (this is KotlinJsCompile) {
compilerOptions {
freeCompilerArgs.add("-Xwasm-enable-array-range-checks")
}
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}