Skip to content

Commit 489aebf

Browse files
authored
Fix duplicated implementation of hilt. (#1570)
Change-Id: I82c2e06b594297cdae7009ee5e87162d0295eb7c
1 parent ecea15d commit 489aebf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ class HiltConventionPlugin : Plugin<Project> {
2626
pluginManager.apply("com.google.devtools.ksp")
2727
dependencies {
2828
add("ksp", libs.findLibrary("hilt.compiler").get())
29-
add("implementation", libs.findLibrary("hilt.core").get())
29+
}
30+
31+
// Add support for Jvm Module, base on org.jetbrains.kotlin.jvm
32+
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
33+
dependencies {
34+
add("implementation", libs.findLibrary("hilt.core").get())
35+
}
3036
}
3137

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

0 commit comments

Comments
 (0)