Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ to Gradle (in Preferences -> Build, Execution, Deployment -> Build Tools -> Grad
### Updating the public API dump

* Use the [Binary Compatibility Validator](https://github.com/Kotlin/binary-compatibility-validator/blob/master/README.md) for updates to public API:
* Run `./gradlew apiDump` to update API index files.
* Run `./gradlew updateLegacyAbi` to update API index files.
* Commit the updated API indexes together with other changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2010-2025 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENCE file.
*/

import org.jetbrains.kotlin.gradle.dsl.abi.ExperimentalAbiValidation

plugins {
kotlin("multiplatform")
}

kotlin {
@OptIn(ExperimentalAbiValidation::class)
abiValidation {
enabled = true
}
}

tasks.check {
dependsOn(tasks.checkLegacyAbi)
}
12 changes: 0 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
*/

import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
import kotlinx.validation.ExperimentalBCVApi

plugins {
id("kotlinx-io-publish") apply false
id("kotlinx-io-dokka")

alias(libs.plugins.kover)
alias(libs.plugins.bcv)
}

allprojects {
Expand All @@ -21,15 +18,6 @@ allprojects {
}
}

@OptIn(ExperimentalBCVApi::class)
apiValidation {
ignoredProjects.addAll(listOf(
"kotlinx-io-benchmarks",
"kotlinx-io-smoke-tests"
))
klib.enabled = true
}

dependencies {
kover(project(":kotlinx-io-core"))
kover(project(":kotlinx-io-bytestring"))
Expand Down
1 change: 1 addition & 0 deletions bytestring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("kotlinx-io-publish")
id("kotlinx-io-dokka")
id("kotlinx-io-android-compat")
id("kotlinx-io-compatibility")
alias(libs.plugins.kover)
}

Expand Down
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
id("kotlinx-io-publish")
id("kotlinx-io-dokka")
id("kotlinx-io-android-compat")
id("kotlinx-io-compatibility")
alias(libs.plugins.kover)
}

Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ okio = { group = "com.squareup.okio", name = "okio", version.ref = "okio" }

dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
bcv = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "bcv" }
kotlinx-benchmark-plugin = { id = "org.jetbrains.kotlinx.benchmark", version.ref = "benchmark"}
6 changes: 1 addition & 5 deletions integration/kotlinx-io-okio/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import java.net.URL

/*
* Copyright 2010-2024 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENCE file.
Expand All @@ -11,6 +7,7 @@ plugins {
id("kotlinx-io-multiplatform")
id("kotlinx-io-publish")
id("kotlinx-io-dokka")
id("kotlinx-io-compatibility")
alias(libs.plugins.kover)
}

Expand Down Expand Up @@ -49,4 +46,3 @@ dokka {
}
}
}