]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22074 enable DownloadOnlyRequired by default 10.5.0.89998
authorPierre <pierre.guillot@sonarsource.com>
Fri, 12 Apr 2024 09:06:49 +0000 (11:06 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 12 Apr 2024 12:49:16 +0000 (12:49 +0000)
sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java
sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerPluginRepository.java

index 5c21ced1d0b59705a75b44988d4c91b24ab17b49..f919a44db58b7a89d8c11de978ce085f4debe2fd 100644 (file)
@@ -99,7 +99,7 @@ public class ScannerProperties {
         .category(CoreProperties.CATEGORY_GENERAL)
         .subCategory("Performance")
         .type(BOOLEAN)
-        .defaultValue("false")
+        .defaultValue("true")
         .build());
   }
 }
index 629c460e252278abf2e33ebcaecd0d083fafe832..fb2834604f657d4b27d05c800da365404f7f4614 100644 (file)
@@ -68,7 +68,7 @@ public class ScannerPluginRepository implements PluginRepository, Startable {
 
   @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());