Package com.github.ferstl.maven.pomenforcers.model

Examples of com.github.ferstl.maven.pomenforcers.model.DependencyScope


    Collection<Dependency> dependencies = EnforcerRuleUtils.getMavenProject(getHelper()).getDependencies();

    for (Dependency dependency : dependencies) {
      ArtifactModel artifactModel = DependencyToArtifactTransformer.INSTANCE.apply(dependency);
      Collection<DependencyScope> allowedScopes = this.scopedDependencies.get(artifactModel);
      DependencyScope dependencyScope = getScope(dependency);

      if (!allowedScopes.isEmpty() && !allowedScopes.contains(dependencyScope)) {
        report.formatLine("%s -> %s", dependency, Joiner.on(", ").join(allowedScopes));
      }
    }
View Full Code Here

TOP

Related Classes of com.github.ferstl.maven.pomenforcers.model.DependencyScope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.