Results 1 to 3 of 3

Thread: Dependency issues with grails and STS 2.5.1

  1. #1

    Default Dependency issues with grails and STS 2.5.1

    Hi there! I'm adding dependencies on my buildconfig.groovy, and even after running the Refresh dependencies, and having them shown on the Grails dependencies under the project properties, I'm unable to import any of the new classes under groovy classes.

    Am I missing something here?

    Regards

  2. #2

    Default

    Seems to be a bug, if I close and re-open the project the new classes are available.

    Even with a clean, compile it does not work, just by closing and re-opening the project.

    Can anyone confirm this?

    BR

  3. #3
    Join Date
    May 2009
    Location
    Vancouver
    Posts
    274

    Default

    Hi,

    Just want to check you are doing the same as me. What I'm describing below failed for me on STS 2.5.1 but works with the nightly build of the grails tools.

    I have a plugin-project (called MyPlugin) and a regular project alongside each other in the workspace. I added a line in BuildConfig.groovy:
    grails.plugin.location.myplugin = "../MyPlugin"
    Then I pressed 'refresh dependencies' on my regular project. I then open up project properties and I see a Project dependency against my plugin project (on the build path page). I can't reference types in MyPlugin until I close and reopen my grails project.

    It worked with the nightly build of tools from the update site:
    http://dist.springsource.com/snapsho...S/nightly/e3.6

    I installed the 'grails tools' from there into my 2.5.1 STS.

    thanks
    Andy
    ---
    Andy Clement
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •