# Use sourceControl to have github dependency

**URL:** <https://discuss.gradle.org/t/use-sourcecontrol-to-have-github-dependency/33691>\
**Category:** Help/Discuss\
**Created:** [October 29, 2019, 12:09pm UTC](https://discuss.gradle.org/t/use-sourcecontrol-to-have-github-dependency/33691 "2019-10-29T12:09:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelfter](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@thelfter](https://discuss.gradle.org/u/thelfter)\
**Post date:** [October 29, 2019, 12:09pm UTC](https://discuss.gradle.org/t/use-sourcecontrol-to-have-github-dependency/33691/1 "2019-10-29T12:09:57Z")

</div>

I would like to use [this](https://github.com/jan-molak/jenkins-build-monitor-plugin) repository as a dependency in my gradle project, but for some reason I get this exception:

> FAILURE: Build failed with an exception.  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] \* What went wrong:  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not determine the dependencies of task ‘:resolveTestPlugins’.  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] \> Could not resolve all task dependencies for configuration ‘:testPlugins’.  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] \> Git repository at [GitHub - jenkinsci/build-monitor-plugin: Jenkins Build Monitor Plugin](https://github.com/jan-molak/jenkins-build-monitor-plugin.git) did not contain a project publishing the specified dependency.  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :  
> 12:54:05.289 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]

My settings.gradle:

> ```
> sourceControl {
> gitRepository('https://github.com/jan-molak/jenkins-build-monitor-plugin.git') {
> producesModule('org.jenkins-ci.plugins:build-monitor-plugin')
> }
> }
> 
> ```

And this is how I try to get the specific version of this plugin:

> ```
> testPlugins 'org.jenkins-ci.plugins:build-monitor-plugin:1.12+build.201809061734'
> 
> ```
