# Unable to link dependency sources

**URL:** https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634
**Category:** Buildship
**Created:** [September 28, 2023, 12:05pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634 "2023-09-28T12:05:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Mr-EmPee](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Mr-EmPee](https://discuss.gradle.org/u/Mr-EmPee)
#### Post date: [September 28, 2023, 12:05pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/1 "2023-09-28T12:05:56Z")

</div>

Hi, sources linking doesn’t work only for this dependecy  
“com.destroystokyo.paper:paper:1.13.2-R0.1-SNAPSHOT” taken from the repo “[Repository - Nexus Repository Manager](https://repo.codemc.io/repository/nms/)”, anyone happen to knows why?

P.S. Linking works for other dependencies and the source jar is being downloaded (I’ve looked inside the gradle cache folder)

I’ve already tried to remove the downloaded source jar from the cache but that doesn’t change anything.

---

<div class="post-metadata">

### Author: ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)
#### Post date: [September 28, 2023, 1:31pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/2 "2023-09-28T13:31:23Z")

</div>

When you say you “removed the downloaded source jar”, what did you remove?  
You said the download did not work, so what was there to delete?  
Also, Gradle does not automatically download any sources.  
It is for example the IntelliJ IDEA sync execution that downloads and links those source jars.  
So maybe try to refresh your Gradle project in your IDE so that the sources get downloaded.

---

<div class="post-metadata">

### Author: ![Mr-EmPee](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Mr-EmPee](https://discuss.gradle.org/u/Mr-EmPee)
#### Post date: [September 28, 2023, 2:19pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/3 "2023-09-28T14:19:14Z")

</div>

Sorry chose the wrong word, it’s not that it isn’t downloading. It’s not linking the downloaded source.  
Btw I thought that it was buildship that had the job to link downloaded sources.

---

<div class="post-metadata">

### Author: ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)
#### Post date: [September 28, 2023, 2:36pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/4 "2023-09-28T14:36:52Z")

</div>

Ah right, didn’t look at the “Buildship” category.  
So yes, Buildship is the IDE integration for Eclipse that should trigger the download through Gradle and then link the sources.  
If that does not work, I cannot help though, I’m not using Eclipse.

---

<div class="post-metadata">

### Author: ![Mr-EmPee](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Mr-EmPee](https://discuss.gradle.org/u/Mr-EmPee)
#### Post date: [September 28, 2023, 2:59pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/5 "2023-09-28T14:59:39Z")

</div>

Same problem happens on IntelliJ IDEA…

---

<div class="post-metadata">

### Author: ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)
#### Post date: [September 28, 2023, 3:39pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/6 "2023-09-28T15:39:30Z")

</div>

Works fine here with IJ:

 ![image](https://global.discourse-cdn.com/gradle/original/2X/b/bfd88510c84cced17c279c9285e479825a7c3245.png)

---

<div class="post-metadata">

### Author: ![Mr-EmPee](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Mr-EmPee](https://discuss.gradle.org/u/Mr-EmPee)
#### Post date: [September 28, 2023, 3:55pm UTC](https://discuss.gradle.org/t/unable-to-link-dependency-sources/46634/7 "2023-09-28T15:55:37Z")

</div>

Uhm, I tried it a bit of time ago so I wasn’t sure. Ty for your time.

I asked on the GH discussion of the java language server extension for vs code given that is the thing that implements buildship.
