We have a plugin that walks the dependencies like below
Configuration defaultConfig = project.configurations.getByName(DEFAULT_CONFIG_NAME)
defaultConfig.resolvedConfiguration.firstLevelModuleDependencies.each { ResolvedDependency dep ->
def group = dep.getModuleGroup()
def name = dep.getModuleName()
def ver = dep.getModuleVersion()
def conf = "default->${dep.getConfiguration()}"
}
.....
I also need to capture if the dependency is a platform or enforcedPlatform. I don’t see anyway to do that though via the api doc.
Does anyone know how I could get that info?