public class ExcludeBuildFolderPlugin extends ProjectPlugin
Creates eclipse project files which excludes the gradle build folder from Eclipse’s resource indexing.
If you hit Ctrl + R in eclipse, you’ll get a fuzzy search for resources in your workspace. This will include class files and other artifacts in the gradle build folder, which is usually not desirable. To fix:
apply plugin: 'com.diffplug.gradle.eclipse.excludebuildfolder'
If you’d like to exclude more than just the build folder, you might want to look at the more general ResourceFiltersPlugin.
| Constructor and Description |
|---|
ExcludeBuildFolderPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.
|
apply, getPlugin, treeDefprotected void applyOnce(Project project)
ProjectPluginPlugin application, which is guaranteed to execute only once.
applyOnce in class ProjectPlugin