KPM: consider implementation dependencies as direct module dependencies

This commit is contained in:
Sergey Igushkin
2022-02-01 00:49:54 +04:00
committed by Space
parent a58f04e30b
commit 52e8f1a32d
@@ -87,7 +87,9 @@ open class KotlinGradleFragmentInternal @Inject constructor(
get() = _directRefinesDependencies.map { it.get() }
override val declaredModuleDependencies: Iterable<KotlinModuleDependency>
get() = project.configurations.getByName(apiConfigurationName).allDependencies.map { it.toModuleDependency(project) } // FIXME impl
get() = listOf(apiConfiguration, implementationConfiguration).flatMapTo(mutableSetOf()) {
it.allDependencies.map { it.toModuleDependency(project) }
}
override val kotlinSourceRoots: SourceDirectorySet =
project.objects.sourceDirectorySet(