]> source.dussan.org Git - sonarqube.git/commit
SONAR-3516 Check minimal sonar version required by installed plugins
authorDavid Gageot <david@gageot.net>
Mon, 18 Jun 2012 09:47:54 +0000 (11:47 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 18 Jun 2012 10:39:50 +0000 (12:39 +0200)
commitba7439977f53e5c05f2c6cd52b907f6582a10bde
tree0d42f95864ec7e82bbdae465144bacc0307d752e
parent923bd083ff22f8bccf8fe3f698b2b82fa3347354
SONAR-3516 Check minimal sonar version required by installed plugins

Plugin manifest declares the minimal required version of sonar.
This version is verified at server startup. It prevents plugins from
failing for API incompatibility reasons.
Startup fails with a meaningful message.
sonar-core/src/main/java/org/sonar/core/plugins/DefaultPluginMetadata.java
sonar-core/src/main/java/org/sonar/core/plugins/PluginInstaller.java
sonar-core/src/test/java/org/sonar/core/plugins/DefaultPluginMetadataTest.java
sonar-core/src/test/java/org/sonar/core/plugins/PluginInstallerTest.java
sonar-core/src/test/resources/org/sonar/core/plugins/PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml [deleted file]
sonar-core/src/test/resources/org/sonar/core/plugins/checkstyle-extension.xml [new file with mode: 0644]
sonar-core/src/test/resources/org/sonar/core/plugins/sonar-switch-off-violations-plugin-1.1.jar [new file with mode: 0644]
sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java
sonar-server/src/test/java/org/sonar/server/plugins/PluginDeployerTest.java
sonar-server/src/test/resources/org/sonar/server/plugins/PluginDeployerTest/should_fail_on_plugin_depending_on_more_recent_sonar/extensions/plugins/sonar-switch-off-violations-plugin-1.1.jar [new file with mode: 0644]