241242243244245246247248249
} @Override public void removeManagedDependency(Dependency managedDependency) { GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel()); model.removeManagedDependency(forgeDepToGradleDep(managedDependency)); getGradleFacet().setModel(model); }
424344454647484950
} @Override public void setPackagingType(String type) { GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel()); model.setPackaging(type); getGradleFacet().setModel(model); }
126127128129130131132133134
@Override public void setFinalName(String finalName) { getGradleFacet().installForgeLibrary(); GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel()); model.setArchiveName(finalName); getGradleFacet().setModel(model); }
2728293031323334353637383940
@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(); }
4041424344454647
} @Override public boolean isInstalled() { GradleModelBuilder model = GradleModelBuilder.create(getFaceted().getFacet(GradleFacet.class).getModel()); return model.hasEffectivePlugin(GradlePluginBuilder.create(GradlePluginType.JAVA)); }
474849505152535455
} @Override public void setSourceCompilerVersion(CompilerVersion version) { GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel()); model.setSourceCompatibility(version.toString()); getGradleFacet().setModel(model); }
555657585960616263
} @Override public void setTargetCompilerVersion(CompilerVersion version) { GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel()); model.setTargetCompatibility(version.toString()); getGradleFacet().setModel(model); }