dependency Relocate
fun <T : ModuleDependency> Project.dependencyRelocate(dependency: T, relocateFrom: String, relocateTo: String = ".libs.", configuration: String = "implementation", configurationAction: T.() -> Unit = {}): T
Adds the provided dependency as an
implementationdependencyRelocates the dependency to the provided package
Return
The T of the added dependency
Parameters
dependency
The dependency to add
relocate From
The package to relocate from
relocate To
The package to relocate to
configuration Action
The configuration action for the dependency
fun Project.dependencyRelocate(dependency: String, relocateFrom: String = dependency.split(":").first(), relocateTo: String = ".libs.", configuration: String = "implementation", configurationAction: ExternalModuleDependency.() -> Unit = {}): ExternalModuleDependency
Adds the provided dependency as an
implementationdependencyRelocates the dependency to the provided package
Return
The ExternalModuleDependency of the added dependency
Parameters
dependency
The dependency to add
relocate From
The package to relocate from
relocate To
The package to relocate to
configuration Action
The configuration to add the dependency to