aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorMichal Duda <michal.duda@sonarsource.com>2018-11-28 14:12:03 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:43:03 +0100
commitbe6d8e2b07b805a795a59917be6de055285c9ddb (patch)
tree2a0f4a7104b30514d056c023c1a4d9b0acd38ddb /sonar-core
parent7be847605deb32e28afadd8dd53397ff4b5842c8 (diff)
downloadsonarqube-be6d8e2b07b805a795a59917be6de055285c9ddb.tar.gz
sonarqube-be6d8e2b07b805a795a59917be6de055285c9ddb.zip
SONAR-11524 textfield for deprecated module-lvl properties
Add a project-level textfield property in UI that aggregates all previous module-level properties.
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/main/resources/org/sonar/l10n/core.properties1
-rw-r--r--sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java2
3 files changed, 12 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 c30758dc895..82b69240566 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
@@ -62,6 +62,16 @@ public class CorePropertyDefinitions {
defs.addAll(ScannerProperties.all());
defs.addAll(asList(
+ PropertyDefinition.builder(CoreProperties.MODULE_LEVEL_ARCHIVED_SETTINGS)
+ .name("Archived Sub-Projects Settings")
+ .description("DEPRECATED - Recap of the properties that were previously configured at sub-project / module level. " +
+ "These properties are not used anymore and should now be configured at project level. " +
+ "Set this parameter to empty to prevent the analysis from displaying a warning.")
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_MODULES)
+ .onlyOnQualifiers(Qualifiers.PROJECT)
+ .type(PropertyType.TEXT)
+ .build(),
PropertyDefinition.builder(CoreProperties.SERVER_BASE_URL)
.name("Server base URL")
.description("HTTP URL of this SonarQube server, such as <i>http://yourhost.yourdomain/sonar</i>. This value is used i.e. to create links in emails.")
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index dd4cb444f2d..18b2eb9d7d8 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -874,6 +874,7 @@ property.category.general.localization=Localization
property.category.general.databaseCleaner=Database Cleaner
property.category.general.looknfeel=Look & Feel
property.category.general.issues=Issues
+property.category.general.subProjects=Sub-projects
property.category.organizations=Organizations
property.category.security=Security
property.category.security.encryption=Encryption
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 54c4a7aac16..a6c90b4b9f6 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
@@ -30,7 +30,7 @@ public class CorePropertyDefinitionsTest {
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
- assertThat(defs).hasSize(54);
+ assertThat(defs).hasSize(55);
}
@Test