Package org.jboss.forge.addon.gradle.projects.model

Examples of org.jboss.forge.addon.gradle.projects.model.GradleModelBuilder


   }

   @Override
   public void removeManagedDependency(Dependency managedDependency)
   {
      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      model.removeManagedDependency(forgeDepToGradleDep(managedDependency));
      getGradleFacet().setModel(model);
   }
View Full Code Here


   }

   @Override
   public void setPackagingType(String type)
   {
      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      model.setPackaging(type);
      getGradleFacet().setModel(model);
   }
View Full Code Here

   @Override
   public void setFinalName(String finalName)
   {
      getGradleFacet().installForgeLibrary();

      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      model.setArchiveName(finalName);
      getGradleFacet().setModel(model);
   }
View Full Code Here

   @Override
   public boolean install()
   {
      if (!this.isInstalled())
      {
         GradleModelBuilder model = GradleModelBuilder.create(getFaceted().getFacet(GradleFacet.class).getModel());
         if (!model.hasPlugin(GradlePluginBuilder.create(GradlePluginType.JAVA)))
         {
            model.addPlugin(GradlePluginBuilder.create(GradlePluginType.JAVA));
            getFaceted().getFacet(GradleFacet.class).setModel(model);
         }
      }
      return isInstalled();
   }
View Full Code Here

   }

   @Override
   public boolean isInstalled()
   {
      GradleModelBuilder model = GradleModelBuilder.create(getFaceted().getFacet(GradleFacet.class).getModel());
      return model.hasEffectivePlugin(GradlePluginBuilder.create(GradlePluginType.JAVA));
   }
View Full Code Here

   }

   @Override
   public void setSourceCompilerVersion(CompilerVersion version)
   {
      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      model.setSourceCompatibility(version.toString());
      getGradleFacet().setModel(model);
   }
View Full Code Here

   }

   @Override
   public void setTargetCompilerVersion(CompilerVersion version)
   {
      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      model.setTargetCompatibility(version.toString());
      getGradleFacet().setModel(model);
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.gradle.projects.model.GradleModelBuilder

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.