@@ -25,7 +25,7 @@ internal fun DependencyHandler.implementation(dependency: Any) = add("implementa
25
25
private fun DependencyHandlerScope.implementation (
26
26
dependency : Any ,
27
27
config : Action <ExternalModuleDependency >
28
- ) = dependencies.add(" implementation" , dependency, closureOf<ExternalModuleDependency > { config.execute(this ) })
28
+ ) = dependencies.add(" implementation" , dependency, closureOf<ExternalModuleDependency > { config.execute(this ) })
29
29
30
30
private fun DependencyHandlerScope.androidTestImplementation (dependency : Any ) = dependencies.add(" androidTestImplementation" , dependency)
31
31
@@ -114,14 +114,30 @@ fun DependencyHandlerScope.allServicesImpl() {
114
114
implementation(project(" :services:toolbox:impl" ))
115
115
}
116
116
117
- fun DependencyHandlerScope.allEnterpriseImpl (project : Project ) = addAll(project, " enterprise" , " impl" )
117
+ fun DependencyHandlerScope.allEnterpriseImpl (project : Project ) = addAll(
118
+ project = project,
119
+ modulePrefix = " :enterprise:features" ,
120
+ moduleSuffix = " :impl" ,
121
+ )
118
122
119
- fun DependencyHandlerScope.allFeaturesImpl (project : Project ) = addAll(project, " features" , " impl" )
123
+ fun DependencyHandlerScope.allFeaturesImpl (project : Project ) = addAll(
124
+ project = project,
125
+ modulePrefix = " :features" ,
126
+ moduleSuffix = " :impl" ,
127
+ )
120
128
121
- fun DependencyHandlerScope.allFeaturesApi (project : Project ) = addAll(project, " features" , " api" )
129
+ fun DependencyHandlerScope.allFeaturesApi (project : Project ) = addAll(
130
+ project = project,
131
+ modulePrefix = " :features" ,
132
+ moduleSuffix = " :api" ,
133
+ )
122
134
123
- private fun DependencyHandlerScope.addAll (project : Project , prefix : String , suffix : String ) {
124
- val subProjects = project.rootProject.subprojects.filter { it.path.startsWith(" :$prefix " ) && it.path.endsWith(" :$suffix " ) }
135
+ private fun DependencyHandlerScope.addAll (
136
+ project : Project ,
137
+ modulePrefix : String ,
138
+ moduleSuffix : String ,
139
+ ) {
140
+ val subProjects = project.rootProject.subprojects.filter { it.path.startsWith(modulePrefix) && it.path.endsWith(moduleSuffix) }
125
141
for (p in subProjects) {
126
142
add(" implementation" , p)
127
143
}
0 commit comments