Skip to content

Building project with multiple grabs in different files takes an extremely long time to build (sometimes 3-5 min and sometimes eclipse just gets stuck at buildingWorkspace) #251

@visch

Description

@visch

Our grapes/grab looks like this

@Grapes([
	@GrabResolver(name='package', root='file://localRepo/Repository'),
	@Grab(group='group', module='module', version='[1.6.0,1.7.0)'),
	@GrabExclude('org.codehaus.groovy:groovy-all')
])

Our folder structure looks like
-Project1
--SubProject1
---SourceMainClass (Includes a Grape/Grab)
---MiscFiles
--SubProject2
---SourceMainClass (Includes a Grape/Grab)
---MiscFiles
--SubProject3
---SourceMainClass ((Includes a Grape/Grab)
---MiscFiles

Our projects do build/run properly after they are built, but once in a while our "Building Workspace" process in eclipse takes an extremely long time. We have found that it will take seemingly longer per SubProject that we have as we defined subproject above. We've worked around this by doing one of two things.

  • Exclude the subprojects we're not working on in the buildPath section in eclipse. If we're only doing one grab statement everything is pretty speedy.

  • Remove grab statements during development as our .classpath as all of the references we need, but when we deploy we rely on the grab statements to pull in our dependencies (We do think we made a bad choice not going with a build.gradle per subproject, but this has been working for us so far)

Notes:
*We are running the latest snapshot and this happens on Mars and Neon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions