diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt index a4a8a4f3..425a5695 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt @@ -13,6 +13,13 @@ import javax.inject.Singleton public class DependencyManager @Inject constructor(val executors: KobaltExecutors, val depFactory: DepFactory){ + /** + * Transitive dependencies for the compilation of this project. + */ + fun calculateTransitiveDependencies(project: Project, context: KobaltContext) + = calculateDependencies(project, context, project.dependentProjects, + project.compileDependencies + project.compileRuntimeDependencies) + /** * @return the classpath for this project, including the IClasspathContributors. * allDependencies is typically either compileDependencies or testDependencies