ImportExtension

abstract class ImportExtension(source)

Configuration for importing symbols. Accessible at symbolImport in build scripts.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val attachToSourceSets: SetProperty<String>

The source sets to attach the generated sources to. Default is empty, which attaches to all of them.

Link copied to clipboard
abstract val autoAddSymbolsDependency: Property<Boolean>

Whether to automatically add a dependency on the symbols library to sources sets the symbols are attached to. Defaults to true.

Link copied to clipboard
abstract val flattenDependencyProjects: Property<Boolean>

Whether to flatten all dependencies into a single symbols object. If false, it will generate a new object for each project imported, based on the project name of the exporting project. Defaults to false.

Link copied to clipboard
abstract val generatedSymbolsPackage: Property<String>

The package to use for the generated sources. Defaults to this project's group ID.

Link copied to clipboard
abstract val symbolGenerationDirectory: DirectoryProperty

The directory root to place the generated sources in. Purely internal, there is no reason to set this.