For native dependencies, after resolving, how do I get to its meta data. I am looking to find the resolved dependency’s linkage and build type. Here’s how far I got -
final Configuration config = project.getConfigurations().getByName("nativeLinkDebug");
config.getResolvedConfiguration().getFirstLevelModuleDependencies().forEach(resolvedDependency -> {
resolvedDependency.getAllModuleArtifacts().forEach(resolvedArtifact ->
project.getLogger().info("ResolvedDependency: {}, ResolvedArtifact: {}, Path: {}",
resolvedDependency.getModuleName(),
resolvedArtifact.getModuleVersion().getId().getModule().toString(),
resolvedArtifact.getFile().getPath()));
});
Is this information available thru’ the ResolvedDependency? Is the solution different across project dependency and external dependency?