Need some help, Gradle Cant find Dependincies

Good Morning All,

          I am currently, trying to get this gradle build to work. It is failing because it says it cant not find the jobscheduler-client.jar. I have verified that the directory that it is searching in indeed has the correct jar file. If I take that link and post it in the browser it immediately starts the download. I thought it could be a permissions issue, however when I throw a curl command in the Jenkins job to download that jar, it has no issues. 

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration ‘:compile’.

Artifact ‘jobscheduler-client.jar (com.swacorp.sf:jobscheduler-client:2.0.2)’ not found.
Searched in the following locations:

Update. Now its giving a different error…
10:14:20.720 [ERROR] [org.gradle.BuildExceptionReporter]
10:14:20.729 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:14:20.732 [ERROR] [org.gradle.BuildExceptionReporter]
10:14:20.732 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:14:20.732 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:generateMainMapperClasses’.
10:14:20.733 [ERROR] [org.gradle.BuildExceptionReporter] > invalid source release: 1.8
10:14:20.733 [ERROR] [org.gradle.BuildExceptionReporter]
10:14:20.733 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
10:14:20.733 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:14:20.733 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:14:20.733 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
10:14:20.733 [LIFECYCLE] [org.gradle.BuildResultLogger]
10:14:20.733 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 21 mins 38.285 secs

ok Fixed that issue. Needed to select the correct JDK version.