...
Here is an example
Eclipse and Gradle
A gradle plug-in exist for eclipse and it is in the default configuration for the last version of eclipse.
With this plug-in and declare ofbiz as a gradle project, it's possible to view the task list and running them directly by a click, but currently it's not easy to give some parameters values. So it's useful for the basic tasks but not for a full usage of gradle. If you only have a graphical view for the task list, it's more simple to just do (out of eclipse ;-) ./gradlew --gui
After this warning, if you continue to realy want to have ofbiz declare as a Gradle project, you should do 2 steps :
...
eclipse {
project {
//Eclipse project's comment which appair in Gradle tasks view behind ofbiz
comment = 'All the main gradle task'
//Append gradle natures :
natures 'org.eclipse.buildship.core.gradleprojectnature'
//Append the gradle build command:
buildCommand 'org.eclipse.buildship.core.
gradleprojectbuilder'
...
STEP-1b : If you have already generate the eclipse file, the .project file should be modified
You should add two thing :
- in <natures> add
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
in <buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments/>
</buildCommand>
...
STEP-2 : (after the eclipse files generation) you should add a file name org.eclipse.buildship.core.prefs in .settings directory (created by gradle eclipse task)
the contents of the file should be :
build.commands=org.eclipse.jdt.core.javabuilder
connection.arguments=
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.java.home=null
connection.jvm.arguments=
connection.project.dir=
derived.resources=.gradle,build
eclipse.preferences.version=1
natures=org.eclipse.jdt.core.javanature
project.path=\:
...
You can start eclipse and wait init. You can go to the gradle task view
...
The best Eclipse plugin for Gradle is "Pivotal EGradle IDE" you can find it with MarketPlace and it offers almost all what you need.