Project structure

How to have the project structure build.gradle and settings.gradle in one location and source code/ project directory in a different location to perform builds.

As of now i am successful in downloading the code from GIT to the current directory where the build.gradle and settings.gradle are located but the requirement is to have the sourcecode downloaded to a different directory and start the build.

You can define the locationn of the rootproject and the subproject in the settings.gradle file and point to any directory for this. have a look at the userguide chapter 55: http://www.gradle.org/docs/current/userguide/build_lifecycle.html#sec:settings_file