use of org.sonarsource.sonarlint.core.proto.Sonarlint.PluginReferences.PluginReference in project sonarlint-core by SonarSource.
the class PluginReferencesDownloader method fetchPluginsTo.
public PluginReferences fetchPluginsTo(Path dest, List<SonarAnalyzer> analyzers) {
PluginReferences refs = fetchPlugins(analyzers);
for (PluginReference ref : refs.getReferenceList()) {
pluginCache.get(ref.getFilename(), ref.getHash(), new SonarQubeServerPluginDownloader(ref.getKey()));
}
ProtobufUtil.writeToFile(refs, dest.resolve(StoragePaths.PLUGIN_REFERENCES_PB));
return refs;
}
Aggregations