AbiValidationVariantSpec
A specification for the ABI validation report variant.
An ABI validation report variant is a group of configurations (like filters, klib validation, etc.), for which a separate set of Gradle tasks is created. Different variants allow generating ABI dumps for different sets of classes and targets without modifying the build script.
Each report variant has a unique name.
A distinct set of Gradle tasks is created for each variant, with unique names.
You can access tasks using properties:
For the main variant:
kotlin {
abiValidation {
legacyDump.legacyDumpTaskProvider
legacyDump.legacyCheckTaskProvider
legacyDump.legacyUpdateTaskProvider
}
}
And for custom variants:
kotlin {
abiValidation {
variants.getByName("my").legacyDump.legacyDumpTaskProvider
variants.getByName("my").legacyDump.legacyCheckTaskProvider
variants.getByName("my").legacyDump.legacyUpdateTaskProvider
}
}
Note that this DSL is experimental, and it will likely change in future versions until it is stable.
Since
2.1.20
Inheritors
Properties
A set of filtering rules that restrict Application Binary Interface (ABI) declarations from being included in a dump.
Provides configuration for dumps stored in the old format that are used separately in the Binary Compatibility validator plugin.
Functions
Configures the filters with the provided configuration.
Configures the legacyDump with the provided configuration.