ImportPlugin

class ImportPlugin : Plugin<Project> (source)

The import plugin - dev.rnett.symbol-export.import.

Imports symbols according to ImportExtension (symbolImport).

It does this by registering an incoming configuration importSymbols that is compatible with the outgoing configuration added by ExportPlugin. You add dependencies to the importSymbols configuration to specify which symbols to import. The generateSymbolExports task will generate symbol definition classes for symbols exported by those dependencies. It is automatically wired as an input for all Kotlin source sets by default - this can be controlled using ImportExtension.attachToSourceSets.

Also automatically adds a dependency on the symbols library (see ImportExtension.autoAddSymbolsDependency).

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(target: Project)