Migrate to Kotlin Gradle plugin binary compatibility validation - #74
Open
jeffdgr8 wants to merge 1 commit into
Open
Migrate to Kotlin Gradle plugin binary compatibility validation#74jeffdgr8 wants to merge 1 commit into
jeffdgr8 wants to merge 1 commit into
Conversation
Replaces the kotlinx binary-compatibility-validator plugin with the Kotlin Gradle plugin's built-in (experimental) ABI validation: https://kotlinlang.org/docs/gradle-binary-compatibility-validation.html - abiValidation is configured in library-convention, scoping it to the published modules (replacing BCV's ignoredProjects) with the BuildConfig classes excluded via filters (replacing ignoredClasses) - The check task depends on checkKotlinAbi automatically; dumps are updated with updateKotlinAbi and live in the same api/ layout (api/<module>.klib.api and api/jvm/<module>.api) - klib dumps are unchanged; the jvm dumps drop synthetic DefaultConstructorMarker constructors and a protected member that BCV included but are not public ABI Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the kotlinx binary-compatibility-validator plugin with the Kotlin Gradle plugin's built-in (experimental) ABI validation.
abiValidationis configured inlibrary-convention, scoping it to the published modules (replacing BCV'signoredProjects), with theBuildConfigclasses excluded viafilters { exclude { byNames } }(replacingignoredClasses)checktask depends oncheckKotlinAbiautomatically; dumps are updated withupdateKotlinAbiand live in the sameapi/layout (api/<module>.klib.api,api/jvm/<module>.api)DefaultConstructorMarkerconstructors and aprotectedmember that BCV included but aren't public ABINote: the current DSL differs slightly from the docs — in Kotlin 2.4.0 the
enabledproperty andklib { enabled }toggle are removed (configuring the block enables it, klib dumps are always generated) andexcluded {}is superseded byexclude {}. Task rename to be aware of:apiDump/apiCheck→updateKotlinAbi/checkKotlinAbi.🤖 Generated with Claude Code