Browse Source

SONAR-15776 Remove deprecation for 'Plugin-Dependencies' attribute

This reverts commit b77a664070
tags/9.3.0.51899
Wouter Admiraal 2 years ago
parent
commit
1a2f7a181f

+ 0
- 5
server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginJarLoader.java View File

@@ -155,11 +155,6 @@ public class PluginJarLoader {
return false;
}

if (plugin.getType() != BUNDLED && !plugin.getRequiredPlugins().isEmpty()) {
LOG.warn("Use of 'Plugin-Dependencies' mechanism is planned for removal. Update the plugin {} [{}] to shade its dependencies instead.",
plugin.getName(), plugin.getKey());
}

for (PluginInfo.RequiredPlugin requiredPlugin : plugin.getRequiredPlugins()) {
PluginInfo installedRequirement = allPluginsByKeys.get(requiredPlugin.getKey());
if (installedRequirement == null) {

+ 0
- 10
server/sonar-webserver-api/src/test/java/org/sonar/server/plugins/PluginJarLoaderTest.java View File

@@ -194,16 +194,6 @@ public class PluginJarLoaderTest {
assertThat(logs.logs()).contains("Plugin test [test] is ignored because entry point class is not defined");
}

@Test
public void warn_if_external_plugin_has_dependencies() throws IOException {
copyTestPluginTo("test-base-plugin", fs.getInstalledExternalPluginsDir());
copyTestPluginTo("test-require-plugin", fs.getInstalledExternalPluginsDir());

underTest.loadPlugins();
assertThat(logs.logs()).contains("Use of 'Plugin-Dependencies' mechanism is planned for removal. "
+ "Update the plugin Test Require Plugin [testrequire] to shade its dependencies instead.");
}

@Test
public void fail_if_external_plugin_has_same_key_has_bundled_plugin() throws IOException {
File jar = createJar(fs.getInstalledExternalPluginsDir(), "plugin1", "main", null);

Loading…
Cancel
Save