Skip to content

Commit

Permalink
Fix duplicated implementation of hilt. (#1570)
Browse files Browse the repository at this point in the history
Change-Id: I82c2e06b594297cdae7009ee5e87162d0295eb7c
  • Loading branch information
Jaehwa-Noh authored Oct 24, 2024
1 parent ecea15d commit 489aebf
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ class HiltConventionPlugin : Plugin<Project> {
pluginManager.apply("com.google.devtools.ksp")
dependencies {
add("ksp", libs.findLibrary("hilt.compiler").get())
add("implementation", libs.findLibrary("hilt.core").get())
}

// Add support for Jvm Module, base on org.jetbrains.kotlin.jvm
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
dependencies {
add("implementation", libs.findLibrary("hilt.core").get())
}
}

/** Add support for Android modules, based on [AndroidBasePlugin] */
Expand Down

0 comments on commit 489aebf

Please sign in to comment.