# Gradle error Could not determine the dependencies of task ':compileJava'

**URL:** <https://discuss.gradle.org/t/gradle-error-could-not-determine-the-dependencies-of-task-compilejava/31768>\
**Category:** Help/Discuss\
**Created:** [May 14, 2019, 10:28pm UTC](https://discuss.gradle.org/t/gradle-error-could-not-determine-the-dependencies-of-task-compilejava/31768 "2019-05-14T22:28:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhirj8](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sudhirj8](https://discuss.gradle.org/u/sudhirj8)\
**Post date:** [May 14, 2019, 10:28pm UTC](https://discuss.gradle.org/t/gradle-error-could-not-determine-the-dependencies-of-task-compilejava/31768/1 "2019-05-14T22:28:36Z")

</div>

1. Below is my setup for gradle/jenkins  
centos 7,  
installed jenkins  
installed gradle in folder /opt/gradle/gradle-3.4.1  
added path using below  
export PATH=$PATH:/opt/gradle/gradle-3.4.1/bin

2. 

Under Manage Jenkins/Global Tools config, added gradle installation  
Name - gradle3, Gradle Home - /opt/gradle/gradle-3.4.1  
ran command ‘gradle init’ from the terminal

1. Created pipeline ‘pipe4’ with config below  
pipeline {  
agent any  
stages{  
stage(‘source’) {  
steps {  
git ‘[GitHub - javahometech/my-app](https://github.com/javahometech/my-app.git)’  
}  
}  
stage(‘compile’) {  
tools {  
gradle ‘gradle3’  
}  
steps {  
sh ‘gradle compileJava’  
}  
}  
}  
}

2. When I ran the build, fails with below message

- What went wrong:  
Could not determine the dependencies of task ‘:compileJava’.

> Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter().
