Skip to content

Commit

Permalink
SONAR-22074 enable DownloadOnlyRequired by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-guillot-gh authored and sonartech committed Apr 12, 2024
1 parent 2727dd9 commit c03b271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static List<PropertyDefinition> all() {
.category(CoreProperties.CATEGORY_GENERAL)
.subCategory("Performance")
.type(BOOLEAN)
.defaultValue("false")
.defaultValue("true")
.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ScannerPluginRepository(PluginInstaller installer, PluginJarExploder plug

@Override
public void start() {
shouldLoadOnlyRequiredPluginsOnStart = properties.getBoolean(PLUGIN_LOADING_OPTIMIZATION_KEY).orElse(false);
shouldLoadOnlyRequiredPluginsOnStart = properties.getBoolean(PLUGIN_LOADING_OPTIMIZATION_KEY).orElse(true);
if (!shouldLoadOnlyRequiredPluginsOnStart) {
LOG.warn("{} is false, so ALL available plugins will be downloaded", PLUGIN_LOADING_OPTIMIZATION_KEY);
pluginsByKeys = new HashMap<>(installer.installAllPlugins());
Expand Down

0 comments on commit c03b271

Please sign in to comment.