Skip to content

Commit

Permalink
Only apply the BCV plugin to the published subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Feb 10, 2025
1 parent f2adb2a commit 8262772
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 8 deletions.
Empty file removed benchmarks/api/benchmarks.api
Empty file.
8 changes: 0 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id("kotlinx.team.infra") version "0.4.0-dev-81"
kotlin("multiplatform") apply false
id("org.jetbrains.kotlinx.kover") version "0.8.0-Beta2"
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.17.0"
}

infra {
Expand Down Expand Up @@ -58,10 +57,3 @@ dependencies {
kover(project(":kotlinx-datetime"))
kover(project(":kotlinx-datetime-serialization"))
}

apiValidation {
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}
8 changes: 8 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
id("org.jetbrains.dokka")
`maven-publish`
id("org.jetbrains.kotlinx.kover")
id("org.jetbrains.kotlinx.binary-compatibility-validator")
}

mavenPublicationsPom {
Expand Down Expand Up @@ -441,3 +442,10 @@ with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootPr
nodeVersion = "21.0.0-v8-canary202309167e82ab1fa2"
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
}

apiValidation {
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defaultKotlinVersion=1.9.21
dokkaVersion=1.9.20
serializationVersion=1.6.2
benchmarksVersion=0.7.2
bcvVersion=0.17.0

java.mainToolchainVersion=8
java.modularToolchainVersion=11
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ pluginManagement {
}
val dokkaVersion: String by settings
val benchmarksVersion: String by settings
val bcvVersion: String by settings
plugins {
id("org.jetbrains.dokka") version dokkaVersion
id("me.champeau.jmh") version benchmarksVersion
id("org.jetbrains.kotlinx.binary-compatibility-validator") version bcvVersion
}
}

Expand Down
8 changes: 8 additions & 0 deletions timezones/full/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
kotlin("multiplatform")
id("maven-publish")
id("com.github.node-gradle.node") version "7.0.2"
id("org.jetbrains.kotlinx.binary-compatibility-validator")
}

node {
Expand Down Expand Up @@ -89,3 +90,10 @@ kotlin {
}
}
}

apiValidation {
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}

0 comments on commit 8262772

Please sign in to comment.