Build Gradle Project offline for Android

Hi,

I need to build an Android Project offline with gradle on a CI server with no Internet Connection.

I used the following to build the local cache and then transfer it to the CI server

gradle build -g ./gradle_libs

This creates a local cache of all the dependencies but Unfortunately i cannot use this on the CI Server as it uses the absolute path of the directory to get the location of artifacts.

Is there a way to build a gradle project completely offline? Please help.

Thanks Nalin

Referred to this article. But was this implemeted?

http://forums.gradle.org/gradle/topics/welcome_to_our_new_dependency_cache