Search in sources :

Example 1 with PluginReference

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;
}
Also used : PluginReferences(org.sonarsource.sonarlint.core.proto.Sonarlint.PluginReferences) PluginReference(org.sonarsource.sonarlint.core.proto.Sonarlint.PluginReferences.PluginReference)

Aggregations

PluginReferences (org.sonarsource.sonarlint.core.proto.Sonarlint.PluginReferences)1 PluginReference (org.sonarsource.sonarlint.core.proto.Sonarlint.PluginReferences.PluginReference)1