LibraryDependencyDeclaration

interface LibraryDependencyDeclaration

Used to declare how to map library dependencies.

Author

凛 (https://github.com/RinOrz)

Types

Companion
Link copied to clipboard
object Companion

Functions

filter
Link copied to clipboard
abstract fun filter(predicate: LibraryDependency.() -> Boolean)

If the predicate is true, the corresponding dependency will be mapped, otherwise it will not be mapped.

filterNot
Link copied to clipboard
open fun filterNot(predicate: LibraryDependency.() -> Boolean)

If the predicate is false, the corresponding dependency will be mapped, otherwise it will not be mapped.

map
Link copied to clipboard
abstract fun map(vararg dependencies: CharSequence)
open fun map(dependencies: Iterable<CharSequence>)

Adds the given dependencies to map as path.

abstract fun map(vararg dependenciesAndPaths: Pair<CharSequence, CharSequence>)
open fun map(dependenciesAndPaths: Map<out CharSequence, CharSequence>)

Adds the given pair to map the dependencies to the specified mapped paths.

search
Link copied to clipboard
abstract fun search(vararg keywords: CharSequence, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})
open fun search(keywords: Iterable<CharSequence>, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})

Adds a request to searches remote dependencies by keywords.

searchDefaultOptions
Link copied to clipboard
abstract fun searchDefaultOptions(declaration: SearchDeclaration<LibraryDependency>.() -> Unit)

Adds a default search options block. All search requests will use the specified declaration by default.

searchGroups
Link copied to clipboard
abstract fun searchGroups(vararg groups: CharSequence, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})
open fun searchGroups(groups: Iterable<CharSequence>, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})

Adds a request to searches for remote dependencies belonging to specified groups.

searchPrefixes
Link copied to clipboard
abstract fun searchPrefixes(vararg prefixes: CharSequence, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})
open fun searchPrefixes(prefixes: Iterable<CharSequence>, declaration: SearchDeclaration<LibraryDependency>.() -> Unit = {})

Adds a request to searches for remote dependencies where the specified prefixes exist.

transferPluginIds
Link copied to clipboard
abstract fun transferPluginIds(target: PluginDependencyDeclaration)

Transfers the coordinates of all gradle plugin ids to target declaration.

abstract fun transferPluginIds(targetRootClassName: String = PluginDependencyDeclaration.DefaultRootClassName)

Transfers the coordinates of all gradle plugin ids to target declaration.