1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Helper function.

This commit is contained in:
Cedric Beust 2016-02-10 00:03:57 +04:00
parent 48feda51ad
commit 99b0c3b447

View file

@ -13,6 +13,13 @@ import javax.inject.Singleton
public class DependencyManager @Inject constructor(val executors: KobaltExecutors, public class DependencyManager @Inject constructor(val executors: KobaltExecutors,
val depFactory: DepFactory){ 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. * @return the classpath for this project, including the IClasspathContributors.
* allDependencies is typically either compileDependencies or testDependencies * allDependencies is typically either compileDependencies or testDependencies