aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-17 10:59:54 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit88a4c0d3150f105c677316ca62fece017cb41925 (patch)
tree5909c436d79072be2c940f802594963b8665a1e8 /sonar-core
parent48fbc92a514fe94ad1ac435ddc033bd2379a5a69 (diff)
downloadsonarqube-88a4c0d3150f105c677316ca62fece017cb41925.tar.gz
sonarqube-88a4c0d3150f105c677316ca62fece017cb41925.zip
SONAR-9954 add hidden property sonar.editions.jsonUrl
with production default value
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java10
-rw-r--r--sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java2
2 files changed, 11 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
index 817759783fb..9b0390856ef 100644
--- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
+++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
@@ -47,6 +47,7 @@ public class CorePropertyDefinitions {
public static final String ORGANIZATIONS_CREATE_PERSONAL_ORG = "sonar.organizations.createPersonalOrg";
public static final String ONBOARDING_TUTORIAL_SHOW_TO_NEW_USERS = "sonar.onboardingTutorial.showToNewUsers";
public static final String DISABLE_NOTIFICATION_ON_BUILT_IN_QPROFILES = "sonar.builtInQualityProfiles.disableNotificationOnUpdate";
+ public static final String EDITIONS_CONFIG_URL = "sonar.editions.jsonUrl";
private CorePropertyDefinitions() {
// only static stuff
@@ -254,6 +255,15 @@ public class CorePropertyDefinitions {
.category(CATEGORY_ORGANIZATIONS)
.type(BOOLEAN)
.hidden()
+ .build(),
+
+ // EDITIONS
+ PropertyDefinition.builder(EDITIONS_CONFIG_URL)
+ .name("Defines URL of JSON file with the definitions of SonarSource editions.")
+ .defaultValue("https://resources.sonarsource.com/editions.json")
+ .category(CATEGORY_ORGANIZATIONS)
+ .type(BOOLEAN)
+ .hidden()
.build()));
return defs;
}
diff --git a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java
index aa7bcd07d0d..4144587b4be 100644
--- a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java
@@ -33,7 +33,7 @@ public class CorePropertyDefinitionsTest {
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
- assertThat(defs).hasSize(66);
+ assertThat(defs).hasSize(67);
}
@Test