# Git repository at \<url\> did not contain a project publishing the specified dependency

**URL:** <https://discuss.gradle.org/t/git-repository-at-url-did-not-contain-a-project-publishing-the-specified-dependency/34019>\
**Category:** Help/Discuss\
**Created:** [November 25, 2019, 8:45pm UTC](https://discuss.gradle.org/t/git-repository-at-url-did-not-contain-a-project-publishing-the-specified-dependency/34019 "2019-11-25T20:45:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twof](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@twof](https://discuss.gradle.org/u/twof)\
**Post date:** [November 25, 2019, 8:45pm UTC](https://discuss.gradle.org/t/git-repository-at-url-did-not-contain-a-project-publishing-the-specified-dependency/34019/1 "2019-11-25T20:45:05Z")

</div>

Hi! I’m using the Source Dependency feature detailed here: [https://blog.gradle.org/introducing-source-dependencies](https://blog.gradle.org/introducing-source-dependencies)

```gradle
//settings.gradle

include ':codegen'
sourceControl {
    gitRepository("https://github.com/twof/swagger-codegen.git") {
        producesModule("io.swagger:swagger-codegen")
    }
}

```

```gradle
//build.gradle

implementation("io.swagger:swagger-codegen") {
    version {
        branch = "AdditionalPropertiesFix"
    }
}

```

```gradle
// assemble command output

Could not determine the dependencies of task ':codegen:compileJava'.
> Could not resolve all task dependencies for configuration ':codegen:compileClasspath'.
   > Git repository at https://github.com/swagger-api/swagger-codegen.git did not contain a project publishing the specified dependency.
     Required by:
         project :codegen

```

Any idea what’s going wrong here? I’m rather new to gradle, so apologies if I’ve broken conventions.

---

<div class="post-metadata">

**Author:** ![jendrik](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jendrik/32/7964_2.png) [@jendrik](https://discuss.gradle.org/u/jendrik)\
**Post date:** [November 27, 2019, 1:52pm UTC](https://discuss.gradle.org/t/git-repository-at-url-did-not-contain-a-project-publishing-the-specified-dependency/34019/2 "2019-11-27T13:52:29Z")

</div>

Hi @twof! Welcome to the Gradle community. 🙂

Unfortunately, the project (swagger) you are depending on is built with Maven. Source dependencies currently only work with projects that have a Gradle build.

You would need to build your modified version locally with Maven and then depend on it. You can do that, for example, by installing a snapshot with Maven to _mavenLocal()_ and then depending on it in Gradle.  
[https://docs.gradle.org/current/userguide/declaring\_repositories.html#sec:case-for-maven-local](https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local)
