Package org.jboss.forge.addon.maven.projects.facets

Examples of org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet


    return projectFactory;
  }

  protected void addTestScopedDependency(final Project project, final DependencyArtifact artifact) {
    final DependencyBuilder depBuilder = DependencyBuilder.create(artifact.toString());
    final MavenDependencyFacet dependencyFacet = project.getFacet(MavenDependencyFacet.class);
    final VersionOracle versionOracle = new VersionOracle(dependencyFacet);
   
    if (!dependencyFacet.hasDirectDependency(depBuilder)) {
      if (!versionOracle.isManaged(depBuilder)) {
        depBuilder.setVersion(versionOracle.resolveVersion(GwtMockito));
      }
      dependencyFacet.addDirectDependency(depBuilder);
    }
  }
View Full Code Here


    return projectFactory;
  }

  protected void addTestScopedDependency(final Project project, final DependencyArtifact artifact) {
    final DependencyBuilder depBuilder = DependencyBuilder.create(artifact.toString());
    final MavenDependencyFacet dependencyFacet = project.getFacet(MavenDependencyFacet.class);
    final VersionFacet versionFacet = project.getFacet(VersionFacet.class);

    if (!dependencyFacet.hasDirectDependency(depBuilder)) {
      if (!versionFacet.isManaged(depBuilder)) {
        depBuilder.setVersion(versionFacet.resolveVersion(GwtMockito));
      }
      dependencyFacet.addDirectDependency(depBuilder);
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet

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.