Skip to content

amarcinkowski/gradle-eclipse-php-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gradle plugin for Eclipse PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages