views:

158

answers:

2

I am working on a java Ant+Ivy based project that has the following directory structure:

projectRoot/src
projectRoot/classes
projectRoot/conf
projectRoot/webservices

this works perfectly well in Ant but I am looking to migrate to Gradle.

Is there a way to define a non-maven directory structure in gradle or should I be looking to mavenize?

+2  A: 

It is very easy with Gradle to adapt to any directory structure. See the Gradle user's guide: http://gradle.org/0.9-preview-1/docs/userguide/java_plugin.html#sec:source_sets

Cheers,

  • Hans

-- Hans Dockter Founder, Gradle CEO, Gradle Inc. - Gradle Training, Support, Consulting

Hans Dockter
+1  A: 

I had a similar requirement. Maybe this should help. http://harikrishnan83.wordpress.com/2010/06/04/customize-gradle-directory-structure/

HariKrishnan