On 23/08/2011, at 4:32 AM, Szczepan Faber wrote:

> Sorry, I haven't read your email carefully. Currently, idea module is not 
> created for buildSrc. Can you file the issue for it?
> 

There's already one for this: http://issues.gradle.org/browse/GRADLE-966

> The workaround is to apply idea plugin to buildSrc build.gradle, run idea 
> task in buildSrc and import it manually in idea.
> 
> Cheers!
> --
> Szczepan Faber
> Principal engineer@gradleware
> Lead@mockito
> 
> 22-08-2011 14:42 użytkownik "Urs Schoenenberger" 
> <[email protected]> napisał:
> > Hi,
> > 
> > I'm currently working on a build that uses a custom plugin/task which
> > resides in buildSrc/ and has its own build.gradle. I would like to do the
> > following in the root project's build.gradle:
> > 
> > ideaProject {
> > subprojects = [project(:buildSrc)]
> > }
> > 
> > But this fails:
> > 
> > * What went wrong:
> > A problem occurred evaluating root project 'xxx'.
> > Cause: Project with path ':buildSrc' could not be found in root project
> > 'xxx'.
> > 
> > What can I do to work around this?
> > 
> > (Motivation: I am importing my default task class in build.gradle, which
> > does work. But IntelliJ Idea marks the import statement as an error, saying
> > (rightfully so) that it can't find the package. In my opinion, the desired
> > solution is to have the buildSrc/ tree as an extra Idea module.
> > Alternative/better solutions welcome.)
> > 
> > Thanks,
> > Urs


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to