Announcement Announcement Module
Collapse
No announcement yet.
What are the benefits of using gradle or gant in a grails project Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are the benefits of using gradle or gant in a grails project

    Hi guys, you are privileged to receive my first ever forum post regarding grails, and programming in general.

    Just wondering if someone could explain the reasons/benefits to using a build framework such as Gant or Gradle in a Grails project.

    This is a complete new newby question, but I cant seem to find a clear answer.

    My questions:

    1. If grails handles its own build and dependencies then why would you add the complexity of a build framework.

    2. What benefits does a build framework give to a simple project and/or a complicated project. (or am i missing the point?)

    3. Is a build framework for handling dependencies other than the ones grails can handle

    4. Could you give a simple example that would benefit a grails simple project over the standard grails build?

    Thanks in advance for your patience and hand holding

  • #2
    Originally posted by ajukes View Post
    My questions:

    1. If grails handles its own build and dependencies then why would you add the complexity of a build framework.
    Good question. The main reason to use something like Gradle or Maven is if your Grails project is part of a larger set of projects that are built using Gradle's or Maven's multi-project support.

    Another reason might be that your company has other tools that depend on a Maven/Ant/Gradle/Gant build.

    Originally posted by ajukes View Post
    2. What benefits does a build framework give to a simple project and/or a complicated project. (or am i missing the point?)
    For a simple project, there is almost no benefit. For complex projects, multi-project or module support in the build tool can be very useful (see previous answer).

    Originally posted by ajukes View Post
    3. Is a build framework for handling dependencies other than the ones grails can handle
    Not sure I understand the question, but Grails' dependency management can handle the same sorts of dependencies as Maven, Gradle, and Ivy (since it uses Ivy itself - as does Gradle).

    Originally posted by ajukes View Post
    4. Could you give a simple example that would benefit a grails simple project over the standard grails build?
    No, sorry. If you can't think of a reason to use a separate build tool, then don't. Use the standard Grails command line instead.

    Hope that helps,

    Peter

    Comment


    • #3
      Cheers

      Thanks for this

      Jukesie

      Comment

      Working...
      X