org.gradle.plugins.ide.eclipse.EclipsePlugin Java Examples
The following examples show how to use
org.gradle.plugins.ide.eclipse.EclipsePlugin.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OptionalDependenciesPlugin.java From reactor-core with Apache License 2.0 | 6 votes |
@Override public void apply(Project project) { Configuration optional = project.getConfigurations().create(OPTIONAL_CONFIGURATION_NAME); optional.attributes((attributes) -> attributes.attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, Usage.JAVA_RUNTIME))); project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> { SourceSetContainer sourceSets = project.getConvention().getPlugin(JavaPluginConvention.class) .getSourceSets(); sourceSets.all((sourceSet) -> { sourceSet.setCompileClasspath(sourceSet.getCompileClasspath().plus(optional)); sourceSet.setRuntimeClasspath(sourceSet.getRuntimeClasspath().plus(optional)); }); project.getTasks().withType(Javadoc.class) .all((javadoc) -> javadoc.setClasspath(javadoc.getClasspath().plus(optional))); }); project.getPlugins().withType(EclipsePlugin.class, (eclipsePlugin) -> project.getExtensions().getByType(EclipseModel.class) .classpath((classpath) -> classpath.getPlusConfigurations().add(optional))); }
Example #2
Source File: EclipseModelBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void applyEclipsePlugin(Project root) { Set<Project> allProjects = root.getAllprojects(); for (Project p : allProjects) { p.getPlugins().apply(EclipsePlugin.class); } root.getPlugins().getPlugin(EclipsePlugin.class).makeSureProjectNamesAreUnique(); }
Example #3
Source File: EclipseModelBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void applyEclipsePlugin(Project root) { Set<Project> allProjects = root.getAllprojects(); for (Project p : allProjects) { p.getPlugins().apply(EclipsePlugin.class); } root.getPlugins().getPlugin(EclipsePlugin.class).makeSureProjectNamesAreUnique(); }
Example #4
Source File: EclipseModelBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void applyEclipsePlugin(Project root) { Set<Project> allProjects = root.getAllprojects(); for (Project p : allProjects) { p.getPlugins().apply(EclipsePlugin.class); } root.getPlugins().getPlugin(EclipsePlugin.class).makeSureProjectNamesAreUnique(); }
Example #5
Source File: EclipseModelBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void applyEclipsePlugin(Project root) { Set<Project> allProjects = root.getAllprojects(); for (Project p : allProjects) { p.getPlugins().apply(EclipsePlugin.class); } root.getPlugins().getPlugin(EclipsePlugin.class).makeSureProjectNamesAreUnique(); }