Roman Elizarov | 26af919 | 2017-09-21 18:12:04 +0300 | [diff] [blame] | 1 | /* |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 2 | * Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
Roman Elizarov | 26af919 | 2017-09-21 18:12:04 +0300 | [diff] [blame] | 3 | */ |
| 4 | |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 5 | buildscript { |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 6 | /** |
| 7 | * Overrides for Teamcity 'K2 User Projects' + 'Aggregate build / Kotlinx libraries compilation' configuration: |
| 8 | * kotlin_repo_url - local repository with snapshot Kotlin compiler |
| 9 | * kotlin_version - kotlin version to use |
| 10 | * kotlin_language_version - LV to use |
| 11 | */ |
| 12 | ext.snapshotRepoUrl = rootProject.properties["kotlin_repo_url"] |
| 13 | ext.kotlin_lv_override = rootProject.properties["kotlin_language_version"] |
| 14 | if (snapshotRepoUrl != null && snapshotRepoUrl != "") { |
| 15 | ext.kotlin_version = rootProject.properties["kotlin_version"] |
| 16 | repositories { |
| 17 | maven { url snapshotRepoUrl } |
| 18 | } |
| 19 | } else if (project.hasProperty("bootstrap")) { |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 20 | ext.kotlin_version = property('kotlin.version.snapshot') |
Leonid Startsev | cea9b43 | 2019-11-19 14:14:26 +0300 | [diff] [blame] | 21 | ext["kotlin.native.home"] = System.getenv("KONAN_LOCAL_DIST") |
Leonid Startsev | ca62091 | 2017-11-09 19:55:51 +0300 | [diff] [blame] | 22 | } else { |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 23 | ext.kotlin_version = property('kotlin.version') |
Leonid Startsev | ca62091 | 2017-11-09 19:55:51 +0300 | [diff] [blame] | 24 | } |
Leonid Startsev | 78d5d2d | 2019-07-25 13:51:54 +0300 | [diff] [blame] | 25 | if (project.hasProperty("library.version")) { |
| 26 | ext.overriden_version = property('library.version') |
| 27 | } |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 28 | ext.experimentalsEnabled = ["-progressive", |
Leonid Startsev | 9650a28 | 2022-05-11 14:55:47 +0300 | [diff] [blame] | 29 | "-opt-in=kotlin.ExperimentalMultiplatform", |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 30 | "-opt-in=kotlinx.serialization.InternalSerializationApi", |
| 31 | "-P", "plugin:org.jetbrains.kotlinx.serialization:disableIntrinsic=false" |
Vsevolod Tolstopyatov | 74b4802 | 2019-04-02 18:56:29 +0300 | [diff] [blame] | 32 | ] |
Leonid Startsev | c1bb4d2 | 2018-10-23 18:50:39 +0300 | [diff] [blame] | 33 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 34 | ext.experimentalsInTestEnabled = ["-progressive", |
Leonid Startsev | 9650a28 | 2022-05-11 14:55:47 +0300 | [diff] [blame] | 35 | "-opt-in=kotlin.ExperimentalMultiplatform", |
| 36 | "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", |
| 37 | "-opt-in=kotlinx.serialization.InternalSerializationApi", |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 38 | "-P", "plugin:org.jetbrains.kotlinx.serialization:disableIntrinsic=false" |
Vsevolod Tolstopyatov | 74b4802 | 2019-04-02 18:56:29 +0300 | [diff] [blame] | 39 | ] |
Leonid Startsev | e721ebe | 2021-10-29 14:41:49 +0300 | [diff] [blame] | 40 | ext.koverEnabled = property('kover.enabled') ?: true |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 41 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 42 | def noTeamcityInteractionFlag = rootProject.hasProperty("no_teamcity_interaction") |
| 43 | def buildSnapshotUPFlag = rootProject.hasProperty("build_snapshot_up") |
| 44 | ext.teamcityInteractionDisabled = noTeamcityInteractionFlag || buildSnapshotUPFlag |
| 45 | |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 46 | /* |
Leonid Startsev | cea9b43 | 2019-11-19 14:14:26 +0300 | [diff] [blame] | 47 | * This property group is used to build kotlinx.serialization against Kotlin compiler snapshot. |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 48 | * When build_snapshot_train is set to true, kotlin_version property is overridden with kotlin_snapshot_version. |
| 49 | * DO NOT change the name of these properties without adapting kotlinx.train build chain. |
| 50 | */ |
| 51 | def prop = rootProject.properties['build_snapshot_train'] |
| 52 | ext.build_snapshot_train = prop != null && prop != "" |
| 53 | if (build_snapshot_train) { |
| 54 | ext.kotlin_version = rootProject.properties['kotlin_snapshot_version'] |
| 55 | if (kotlin_version == null) { |
| 56 | throw new IllegalArgumentException("'kotlin_snapshot_version' should be defined when building with snapshot compiler") |
| 57 | } |
| 58 | repositories { |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 59 | maven { url "https://oss.sonatype.org/content/repositories/snapshots" } |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 60 | } |
| 61 | } |
| 62 | |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 63 | repositories { |
Vsevolod Tolstopyatov | d3d2dca | 2020-10-03 06:18:32 -0700 | [diff] [blame] | 64 | maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' } |
Leonid Startsev | fc9343f | 2021-04-26 15:18:02 +0300 | [diff] [blame] | 65 | // kotlin-dev with space redirector |
| 66 | maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" } |
Leonid Startsev | 6a8dc86 | 2021-02-04 17:03:31 +0300 | [diff] [blame] | 67 | mavenCentral() |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 68 | gradlePluginPortal() |
Vsevolod Tolstopyatov | 6d2e5cf | 2021-03-17 15:00:40 +0300 | [diff] [blame] | 69 | // For Dokka that depends on kotlinx-html |
Leonid Startsev | 9f8d050 | 2021-07-08 12:12:06 +0300 | [diff] [blame] | 70 | maven { url "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven" } |
Leonid Startsev | 0e75d25 | 2021-09-01 15:07:44 +0300 | [diff] [blame] | 71 | mavenLocal() |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 72 | } |
| 73 | |
Leonid Startsev | d656e5a | 2019-06-14 12:06:23 +0300 | [diff] [blame] | 74 | configurations.classpath { |
| 75 | resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
| 76 | if (details.requested.group == 'org.jetbrains.kotlin') { |
| 77 | details.useVersion kotlin_version |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 82 | dependencies { |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 83 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
| 84 | classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" |
Leonid Startsev | bc9c8f4 | 2020-04-06 22:30:25 +0300 | [diff] [blame] | 85 | classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" |
Leonid Startsev | e721ebe | 2021-10-29 14:41:49 +0300 | [diff] [blame] | 86 | classpath "org.jetbrains.kotlinx:kover:$kover_version" |
Vsevolod Tolstopyatov | 6de9648 | 2020-06-17 06:41:00 -0700 | [diff] [blame] | 87 | classpath "org.jetbrains.kotlinx:binary-compatibility-validator:$validator_version" |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 88 | classpath "org.jetbrains.kotlinx:kotlinx-knit:$knit_version" |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 89 | classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.5.3' // Android API check |
Leonid Startsev | bc9c8f4 | 2020-04-06 22:30:25 +0300 | [diff] [blame] | 90 | |
Sebastian Schuberth | ece9fdd | 2022-01-28 16:23:48 +0100 | [diff] [blame] | 91 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18' |
Leonid Startsev | bae49f9 | 2018-05-03 19:57:01 +0300 | [diff] [blame] | 92 | |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 93 | // Various benchmarking stuff |
| 94 | classpath "com.github.jengelman.gradle.plugins:shadow:4.0.2" |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 95 | classpath "me.champeau.jmh:jmh-gradle-plugin:0.6.6" |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 96 | } |
| 97 | } |
| 98 | |
Vsevolod Tolstopyatov | 608cbad | 2020-09-14 15:38:02 +0300 | [diff] [blame] | 99 | // To make it visible for compiler-version.gradle |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 100 | ext.compilerVersion = org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION |
Vsevolod Tolstopyatov | 07f730a | 2021-01-22 03:32:08 -0800 | [diff] [blame] | 101 | ext.nativeDebugBuild = org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 102 | |
Vsevolod Tolstopyatov | 6de9648 | 2020-06-17 06:41:00 -0700 | [diff] [blame] | 103 | apply plugin: 'binary-compatibility-validator' |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 104 | apply plugin: 'base' |
| 105 | apply plugin: 'kotlinx-knit' |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 106 | |
Vsevolod Tolstopyatov | 6de9648 | 2020-06-17 06:41:00 -0700 | [diff] [blame] | 107 | apiValidation { |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 108 | ignoredProjects += ["benchmark", "guide", "kotlinx-serialization"] |
Vsevolod Tolstopyatov | 6de9648 | 2020-06-17 06:41:00 -0700 | [diff] [blame] | 109 | } |
Leonid Startsev | 00dd4f5 | 2017-08-23 16:09:21 +0300 | [diff] [blame] | 110 | |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 111 | knit { |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 112 | siteRoot = "https://kotlinlang.org/api/kotlinx.serialization" |
Vsevolod Tolstopyatov | d3d2dca | 2020-10-03 06:18:32 -0700 | [diff] [blame] | 113 | moduleDocs = "build/dokka/htmlMultiModule" |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | // Build API docs for all modules with dokka before running Knit |
| 117 | knitPrepare.dependsOn "dokka" |
| 118 | |
Ignat Beresnev | 8be6845 | 2021-12-27 18:40:50 +0300 | [diff] [blame] | 119 | apply plugin: 'org.jetbrains.dokka' |
| 120 | dependencies { |
| 121 | dokkaPlugin("org.jetbrains.kotlinx:dokka-pathsaver-plugin:$knit_version") |
| 122 | } |
| 123 | |
Leonid Startsev | 00dd4f5 | 2017-08-23 16:09:21 +0300 | [diff] [blame] | 124 | allprojects { |
| 125 | group 'org.jetbrains.kotlinx' |
Leonid Startsev | 476b722 | 2018-06-26 17:06:14 +0300 | [diff] [blame] | 126 | |
Leonid Startsev | f5accd1 | 2020-02-25 20:42:46 +0300 | [diff] [blame] | 127 | def deployVersion = properties['DeployVersion'] |
| 128 | if (deployVersion != null) version = deployVersion |
Leonid Startsev | 78d5d2d | 2019-07-25 13:51:54 +0300 | [diff] [blame] | 129 | |
Leonid Startsev | 476b722 | 2018-06-26 17:06:14 +0300 | [diff] [blame] | 130 | if (project.hasProperty("bootstrap")) { |
| 131 | version = version + '-SNAPSHOT' |
| 132 | } |
Leonid Startsev | 84062e1 | 2017-09-25 16:41:38 +0300 | [diff] [blame] | 133 | |
Leonid Startsev | 9f6d3b4 | 2019-10-09 18:07:41 +0300 | [diff] [blame] | 134 | // the only place where HostManager could be instantiated |
| 135 | project.ext.hostManager = new org.jetbrains.kotlin.konan.target.HostManager() |
| 136 | |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 137 | if (build_snapshot_train) { |
| 138 | // Snapshot-specific |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 139 | repositories { |
| 140 | mavenLocal() |
| 141 | maven { url "https://oss.sonatype.org/content/repositories/snapshots" } |
| 142 | } |
| 143 | } |
Leonid Startsev | cf1db5c | 2019-09-17 19:33:44 +0300 | [diff] [blame] | 144 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 145 | if (snapshotRepoUrl != null && snapshotRepoUrl != "") { |
| 146 | // Snapshot-specific for K2 CI configurations |
| 147 | repositories { |
| 148 | maven { url snapshotRepoUrl } |
| 149 | } |
| 150 | } |
| 151 | |
Leonid Startsev | cf1db5c | 2019-09-17 19:33:44 +0300 | [diff] [blame] | 152 | configurations.all { |
| 153 | resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
| 154 | if (details.requested.group == 'org.jetbrains.kotlin') { |
| 155 | details.useVersion kotlin_version |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
Leonid Startsev | 84062e1 | 2017-09-25 16:41:38 +0300 | [diff] [blame] | 160 | repositories { |
Leonid Startsev | 6a8dc86 | 2021-02-04 17:03:31 +0300 | [diff] [blame] | 161 | mavenCentral() |
Vsevolod Tolstopyatov | d3d2dca | 2020-10-03 06:18:32 -0700 | [diff] [blame] | 162 | maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' } |
Vsevolod Tolstopyatov | 6d2e5cf | 2021-03-17 15:00:40 +0300 | [diff] [blame] | 163 | // kotlin-dev with space redirector |
| 164 | maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" } |
| 165 | // For Dokka that depends on kotlinx-html |
Leonid Startsev | 9f8d050 | 2021-07-08 12:12:06 +0300 | [diff] [blame] | 166 | maven { url "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven" } |
Vsevolod Tolstopyatov | 6d2e5cf | 2021-03-17 15:00:40 +0300 | [diff] [blame] | 167 | // For local development |
| 168 | mavenLocal() |
Leonid Startsev | 9f8d050 | 2021-07-08 12:12:06 +0300 | [diff] [blame] | 169 | |
Leonid Startsev | 84062e1 | 2017-09-25 16:41:38 +0300 | [diff] [blame] | 170 | } |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 171 | |
| 172 | tasks.withType(org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile).configureEach { |
| 173 | compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") } |
| 174 | } |
| 175 | tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).configureEach { |
| 176 | compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") } |
| 177 | } |
Leonid Startsev | 00dd4f5 | 2017-08-23 16:09:21 +0300 | [diff] [blame] | 178 | } |
Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame] | 179 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 180 | def unpublishedProjects = ["benchmark", "guide", "kotlinx-serialization-json-tests"] as Set |
| 181 | def excludedFromBomProjects = unpublishedProjects + "kotlinx-serialization-bom" as Set |
| 182 | def uncoveredProjects = ["kotlinx-serialization-bom", "benchmark", "guide"] as Set |
| 183 | |
Leonid Startsev | 1c35d91 | 2017-10-04 12:26:43 +0300 | [diff] [blame] | 184 | subprojects { |
Leonid Startsev | c1bb4d2 | 2018-10-23 18:50:39 +0300 | [diff] [blame] | 185 | tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all { task -> |
| 186 | if (task.name.contains("Test") || task.name.contains("Jmh")) { |
| 187 | task.kotlinOptions.freeCompilerArgs += experimentalsInTestEnabled |
| 188 | } else { |
| 189 | task.kotlinOptions.freeCompilerArgs += experimentalsEnabled |
| 190 | } |
| 191 | } |
| 192 | |
Leonid Startsev | 9f6d3b4 | 2019-10-09 18:07:41 +0300 | [diff] [blame] | 193 | apply from: rootProject.file('gradle/teamcity.gradle') |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 194 | // Configure publishing for some artifacts |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 195 | if (!unpublishedProjects.contains(project.name)) { |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 196 | apply from: rootProject.file('gradle/publishing.gradle') |
| 197 | } |
Leonid Startsev | 45aa7c7 | 2019-04-23 21:29:03 +0300 | [diff] [blame] | 198 | } |
Leonid Startsev | ed87fbd | 2017-08-04 17:33:09 +0300 | [diff] [blame] | 199 | |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 200 | subprojects { |
| 201 | // Can't be applied to BOM |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 202 | if (excludedFromBomProjects.contains(project.name)) return |
Leonid Startsev | e721ebe | 2021-10-29 14:41:49 +0300 | [diff] [blame] | 203 | |
| 204 | // Animalsniffer setup |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 205 | // Animalsniffer requires java plugin to be applied, but Kotlin 1.9.20 |
| 206 | // relies on `java-base` for Kotlin Multiplatforms `withJava` implementation |
| 207 | // https://github.com/xvik/gradle-animalsniffer-plugin/issues/84 |
| 208 | // https://youtrack.jetbrains.com/issue/KT-59595 |
| 209 | JavaPluginUtil.applyJavaPlugin(project) |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 210 | apply plugin: 'ru.vyarus.animalsniffer' |
| 211 | |
| 212 | afterEvaluate { // Can be applied only when the project is evaluated |
| 213 | animalsniffer { |
| 214 | sourceSets = [sourceSets.main] |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 215 | def annotationValue = "kotlinx.serialization.json.internal.SuppressAnimalSniffer" |
| 216 | switch (name) { |
| 217 | case "kotlinx-serialization-core": |
| 218 | annotationValue = "kotlinx.serialization.internal.SuppressAnimalSniffer" |
| 219 | break |
| 220 | case "kotlinx-serialization-hocon": |
| 221 | annotationValue = "kotlinx.serialization.hocon.internal.SuppressAnimalSniffer" |
| 222 | break |
| 223 | case "kotlinx-serialization-protobuf": |
| 224 | annotationValue = "kotlinx.serialization.protobuf.internal.SuppressAnimalSniffer" |
| 225 | } |
| 226 | annotation = annotationValue |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 227 | } |
| 228 | dependencies { |
| 229 | signature 'net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature' |
| 230 | signature 'org.codehaus.mojo.signature:java18:1.0@signature' |
| 231 | } |
Leonid Startsev | e721ebe | 2021-10-29 14:41:49 +0300 | [diff] [blame] | 232 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 233 | // Add dependency on kotlinx-serialization-bom inside other kotlinx-serialization modules themselves, so they have same versions |
| 234 | BomKt.addBomApiDependency(project, ":kotlinx-serialization-bom") |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | // Kover setup |
| 239 | subprojects { |
| 240 | if (uncoveredProjects.contains(project.name)) return |
| 241 | |
Leonid Startsev | e721ebe | 2021-10-29 14:41:49 +0300 | [diff] [blame] | 242 | apply from: rootProject.file("gradle/kover.gradle") |
Vsevolod Tolstopyatov | ab5c139 | 2021-06-09 15:38:57 +0300 | [diff] [blame] | 243 | } |
| 244 | |
Vsevolod Tolstopyatov | 608cbad | 2020-09-14 15:38:02 +0300 | [diff] [blame] | 245 | apply from: rootProject.file('gradle/compiler-version.gradle') |
Leonid Startsev | bc9c8f4 | 2020-04-06 22:30:25 +0300 | [diff] [blame] | 246 | apply from: rootProject.file("gradle/dokka.gradle") |
Leonid Startsev | 98ead98 | 2021-06-28 13:02:07 +0300 | [diff] [blame] | 247 | apply from: rootProject.file("gradle/benchmark-parsing.gradle") |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 248 | |
| 249 | tasks.named("dokkaHtmlMultiModule") { |
| 250 | pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """{ "templatesDir": "${projectDir.toString().replace('\\', '/')}/dokka-templates" }"""]) |
| 251 | } |
| 252 | |
| 253 | tasks.withType(org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask).configureEach { |
| 254 | args.add("--ignore-engines") |
| 255 | } |