# Trying to do an offline Build using a Local Repository -- Dependency issue

**URL:** <https://discuss.gradle.org/t/trying-to-do-an-offline-build-using-a-local-repository-dependency-issue/20669>\
**Category:** Help/Discuss\
**Created:** [December 1, 2016, 9:40am UTC](https://discuss.gradle.org/t/trying-to-do-an-offline-build-using-a-local-repository-dependency-issue/20669 "2016-12-01T09:40:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrdnewman](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mrdnewman](https://discuss.gradle.org/u/mrdnewman)\
**Post date:** [December 1, 2016, 9:40am UTC](https://discuss.gradle.org/t/trying-to-do-an-offline-build-using-a-local-repository-dependency-issue/20669/1 "2016-12-01T09:40:48Z")

</div>

Hi, I’m developing in an environment without internet access. I’m trying to configure the “build.gradle” to use a local repository. I have downloaded all the jar and pom files to my system local directories.  
However, when I execute ./gradlew fetch I run into dependency issues…

Here is the Error output:  
Starting a new Gradle Daemon for this build (subsequent builds will be faster).

FAILURE: Build failed with an exception.  
•What went wrong:  
Could not resolve all dependencies for configuration ‘:runtime’.

Could not find de.gesellix:gradle-docker-plugin:2016-05-05T13-15-11.  
Searched in the following locations:  
file:/home/radisys/cord/setup\_dev/pkgrepo/mav2-repo/m2/de/gesellix/gradle-docker-plugin/2016-05-05T13-15-11/gradle-docker-plugin-2016-05-05T13-15-11.pom  
file:/home/radisys/cord/setup\_dev/pkgrepo/mav2-repo/m2/de/gesellix/gradle-docker-plugin/2016-05-05T13-15-11/gradle-docker-plugin-2016-05-05T13-15-11.jar  
Required by:  
:buildSrc:unspecified  
Could not find org.yaml:snakeyaml:1.10.  
Searched in the following locations:  
file:/home/radisys/cord/setup\_dev/pkgrepo/mav2-repo/m2/org/yaml/snakeyaml/1.10/snakeyaml-1.10.pom  
file:/home/radisys/cord/setup\_dev/pkgrepo/mav2-repo/m2/org/yaml/snakeyaml/1.10/snakeyaml-1.10.jar  
Required by:  
:buildSrc:unspecified

Here is my build.gradle file:

apply plugin: ‘groovy’

repositories {  
// maven { url ‘[https://repo.gradle.org/gradle/libs](https://repo.gradle.org/gradle/libs)’ }  
// maven { url ‘[https://plugins.gradle.org/m2/](https://plugins.gradle.org/m2/)’ }  
// mavenLocal()  
// mavenCentral()  
maven { url ‘file://’ + new File(System.getProperty(“user.dir”), ‘/setup\_dev/pkgrepo/mav2-repo/m2/’).absolutePath }  
// maven { url uri(‘setup\_dev/pkgrepo/mav2-repo/m2/’)}  
}

dependencies {  
compile gradleApi()  
compile localGroovy()  
compile 'de.gesellix:gradle-docker-plugin:2016-05-05T13-15-11’  
compile ‘org.yaml:snakeyaml:1.10’  
//compile ‘gradle.plugin.com.tmiyamon:gradle-config:0.2.1’  
}

Could someone please shines some the light on the subject. I’m don’t know to much about Gradle however it is something I really need to get pass as my project is coming due.

Note:  
I would able to download and store the Gradle Binary locally. It finds the binary just fine but the dependency issue is blocking me. Thanks.
