mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-27 17:00:50 +01:00
implemented optional dependencies
Plugin authors could now define optional dependencies to other plugins in their pom. Extensions which are using classes from optional dependencies must specify this with the "requires" attribute of the extension annotation. Extensions with "requires" attribute are not installed if one of the specified plugins, is not installed.
This commit is contained in:
@@ -98,8 +98,8 @@ public final class ExplodedSmp implements Comparable<ExplodedSmp>
|
||||
{
|
||||
int result;
|
||||
|
||||
Set<String> depends = plugin.getDependencies();
|
||||
Set<String> odepends = o.plugin.getDependencies();
|
||||
Set<String> depends = plugin.getDependenciesInclusiveOptionals();
|
||||
Set<String> odepends = o.plugin.getDependenciesInclusiveOptionals();
|
||||
|
||||
if (depends.isEmpty() && odepends.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user