Skip to end of metadata
Go to start of metadata

Setting up gradle in eclipse is a little bit more complicated since eclipse does not yet have a good groovy integration. Though there some parts of gradle written in groovy. Therefore it is necessary to compile the groovy classes and add those into the class path of the eclipse project.

The procedure that worked for me is:

  • checkout gradle-core from svn into a new java project via eclipse
  • switch to command line and run sh gradlew testCompile
  • open project properties and go to the java build path window
  • go to the Library tab
  • add two Class Folders
    • build/classes
    • build/test-classes
  • refresh your eclipse project
Labels:
  1. Feb 12, 2009

    I guess something is missing here. after i followed your instructions step by step, i still have to solve the following problem:

    The project was not built since its build path is incomplete. Cannot find the class file for org.jmock.integration.junit4.JUnit4Mockery. Fix the build path then try building this project

    I could fix this manually, but is there a kind of best practice to solve this issue?