Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.1 KB

File metadata and controls

42 lines (36 loc) · 1.1 KB

gradle-eclipse-php-plugin

Gradle plugin for Eclipse PHP

This Gradle plugin allows you to generate project files for Eclipse PHP. Works similar to default 'eclipse' gradle plugin. To use it add to your build.gradle.

Configuration

Example code snippet that will make Eclipse PHP treat 'vendor', 'wp' and 'wp-content' folders as libraries:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.io.github.amarcinkowski.eclipse-php:eclipse-php:1.2.9"
  }
}

apply plugin: "io.github.amarcinkowski.eclipse-php"

eclipsePHP {
  libraryFolders 'vendor', 'wp', 'wp-content'
}

Next add the project to your settings.gradle

include 'myProjectName'

Tasks

Now there are new gradle tasks available. This command will create Eclipse project with PHP nature (generates .project and .buildpath files and .settings folders with additional eclipse configurations):

gradle eclipsePHP

and the following command will remove all the Eclipse PHP project files mentioned earlier:

gradle cleanEclipsePHP