The first step in using gradle as your build system is to realize that you can have blank main/java, main/groovy, test/java, test/groovy folders in your src path. This way you never have to adjust your project moving files and such as yo just declare some new source paths that match what your IDE setup as the project.

The trick is to enable the underlying plugins before the main project one. For example, for the Grails plugin you enable java and groovy before that plugin and than you can set customized source paths for java and groovy according to how your IDE sets up  the typical grails project.

Enhanced by Zemanta
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s