aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2023-12-18 17:25:34 +0100
committersonartech <sonartech@sonarsource.com>2023-12-21 20:02:33 +0000
commit43f2e06d649bd047963863637ad95bdb9fdfa04e (patch)
treee6ea2773b207f29059d5d253dd6b289a48c9edea /sonar-core
parentac97b614d4746f683712851488d88952e06c59fc (diff)
downloadsonarqube-43f2e06d649bd047963863637ad95bdb9fdfa04e.tar.gz
sonarqube-43f2e06d649bd047963863637ad95bdb9fdfa04e.zip
SONAR-21197 add a property to enable the download of the required plugins only
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java b/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java
index 0eccffea26c..9dd608d27af 100644
--- a/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java
+++ b/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java
@@ -40,6 +40,7 @@ public class ScannerProperties {
public static final String FILE_SIZE_LIMIT = "sonar.filesize.limit";
public static final String LINKS_SOURCES_DEV = "sonar.links.scm_dev";
public static final String DISABLE_PROJECT_AND_ORG_AUTODETECTION = "sonar.keys_autodetection.disabled";
+ public static final String PLUGIN_LOADING_OPTIMIZATION_KEY = "sonar.plugins.downloadOnlyRequired";
private ScannerProperties() {
// only static stuff
@@ -91,6 +92,14 @@ public class ScannerProperties {
.description(
"Allows discarding files from analysis exceeding certain sizes.")
.hidden()
+ .build(),
+ PropertyDefinition.builder(PLUGIN_LOADING_OPTIMIZATION_KEY)
+ .name("Enable scanner plugin loading optimization")
+ .description("When enabled, scanners will only download plugins required for detected languages.")
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory("Performance")
+ .type(BOOLEAN)
+ .defaultValue("true")
.build());
}
}