# Unable to resolve dependencies (gradle)

**URL:** <https://community.sonatype.com/t/unable-to-resolve-dependencies-gradle/11147>\
**Category:** Sonatype Nexus Repository\
**Tags:** integrations, nexus-repository\
**Created:** [August 22, 2023, 1:56pm UTC](https://community.sonatype.com/t/unable-to-resolve-dependencies-gradle/11147 "2023-08-22T13:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreenath.thatikonda](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sreenath.thatikonda](https://community.sonatype.com/u/sreenath.thatikonda)\
**Post date:** [August 22, 2023, 1:56pm UTC](https://community.sonatype.com/t/unable-to-resolve-dependencies-gradle/11147/1 "2023-08-22T13:56:03Z")

</div>

We recently setup nexus respository on one of our aws ec2 accounts and to test the repo, we uploaded a jar file and tried using that jar in my build.gradle file. But seems like gradle is unable to find the artifact. I am getting the following error: **Declare repository providing the artifact, see the documentation at [3. Declaring repositories](https://docs.gradle.org/current/userguide/declaring_repositories.html)**

Attached is the screenshot of my simple build.gradle file

Is there any other setup to be done before i can start resolving those dependencies? do let me know.

 ![nexus gradle 1](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/51dc43279f9dc99215acaf1dc050985d1f2252d1.png)

---

<div class="post-metadata">

**Author:** ![sreenath.thatikonda](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sreenath.thatikonda](https://community.sonatype.com/u/sreenath.thatikonda)\
**Post date:** [August 22, 2023, 1:56pm UTC](https://community.sonatype.com/t/unable-to-resolve-dependencies-gradle/11147/2 "2023-08-22T13:56:34Z")

</div>

This is my nexus page

 ![nexus gradle 2](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/7/75718f97f9576e21b002b1dabad3784ab7d7603a.png)
