On 5 Apr 2014, at 8:27 am, Kallin Nagelberg <kallin.nagelb...@gmail.com> wrote:
> I opened a pull request to allow VCS to be configured for intellij Projects: > https://github.com/gradle/gradle/pull/263 > > Motivation: My workflow involves running 'gradle cleanIdea idea' fairly > often, and It's annoying to have to reconfigure Intellij to recognize that > it's a Git project every time. > > The pull request is currently quite simple, and I'm open to ideas for > improvements. Maybe auto-detect VCS, do some sort of validation that the > supplied VCS is valid for Intellij etc. > > I know that this can be accomplished by using withXml, but feel that creates > an ugly build file for what I imagine is a very common use case. > > Thoughts? Why do you use ‘cleanIdea’ so often (or at all)? The ‘idea’ task takes care of merging the changes into your existing project and module files. You should be able to just run ‘gradle idea’ and have it all just work. -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com Join us for Gradle Summit 2014, June 12th and 13th in Santa Clara, CA: http://www.gradlesummit.com