diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2013-10-01 09:25:34 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2013-10-01 09:36:21 +0200 |
commit | 2fa3148c3ffa99ca8ad4e02f0eba43275f8c2bec (patch) | |
tree | 539ebe8028d6d5b18f3f2463d67962f6b58c98d3 /plugins | |
parent | 62d70040d096c1fc9eb5554f9d3efe3ea9fce2f5 (diff) | |
download | sonarqube-2fa3148c3ffa99ca8ad4e02f0eba43275f8c2bec.tar.gz sonarqube-2fa3148c3ffa99ca8ad4e02f0eba43275f8c2bec.zip |
SONAR-4713 Fail on unprovisioned project
Add new property to make provisioning mandatory
Turn ProjectReactorValidator into an IoC-managed component
Add check at project scan bootstrap to fail if project does not exist
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java index 5c12d99859a..ac4dbd8b359 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java @@ -377,8 +377,16 @@ public final class CorePlugin extends SonarPlugin { .description("Forcing user authentication stops un-logged users to access SonarQube.") .type(PropertyType.BOOLEAN) .category(CoreProperties.CATEGORY_SECURITY) + .build(), + + PropertyDefinition.builder(CoreProperties.CORE_PREVENT_AUTOMATIC_PROJECT_CREATION) + .defaultValue(Boolean.toString(false)) + .name("Prevent automatic project creation") + .description("Set to true to prevent automatic project creation at first analysis and force project provisioning.") + .type(PropertyType.BOOLEAN) + .category(CoreProperties.CATEGORY_SECURITY) .build() - ); + ); } } |