Skip to content

Commit

Permalink
Use getPackage() for implementationRelocate(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Jun 25, 2024
1 parent 7eaadd5 commit eec8552
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun <T: ModuleDependency> DependencyHandler.implementationRelocate(
project: Project,
dependency: T,
relocateFrom: String,
relocateTo: String = "${project.group}.${project.name.lowercase().filter { char -> char.isLetterOrDigit() || char in "._" }}.libs.${relocateFrom.split(".").last()}",
relocateTo: String = "${project.getPackage()}.libs.${relocateFrom.split(".").last()}",
configuration: T.() -> Unit = {}
): T {
check(project.hasShadowPlugin()) { "Shadow plugin is not applied!" }
Expand All @@ -177,7 +177,7 @@ fun DependencyHandler.implementationRelocate(
project: Project,
dependency: String,
relocateFrom: String = dependency.split(":").first(),
relocateTo: String = "${project.group}.${project.name.lowercase().filter { char -> char.isLetterOrDigit() || char in "._" }}.libs.${relocateFrom.split(".").last()}",
relocateTo: String = "${project.getPackage()}.libs.${relocateFrom.split(".").last()}",
configuration: Action<ExternalModuleDependency> = Action {}
): ExternalModuleDependency {
check(project.hasShadowPlugin()) { "Shadow plugin is not applied!" }
Expand Down

0 comments on commit eec8552

Please sign in to comment.