# Are per-artefact source JARs possible?

**URL:** <https://discuss.gradle.org/t/are-per-artefact-source-jars-possible/39210>\
**Category:** Buildship\
**Created:** [March 5, 2021, 1:12pm UTC](https://discuss.gradle.org/t/are-per-artefact-source-jars-possible/39210 "2021-03-05T13:12:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pscholze](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@pscholze](https://discuss.gradle.org/u/pscholze)\
**Post date:** [March 5, 2021, 1:12pm UTC](https://discuss.gradle.org/t/are-per-artefact-source-jars-possible/39210/1 "2021-03-05T13:12:11Z")

</div>

For the module configuration below, Buildship adds all designated JARs to the Eclipse Build Path, whether they are source JARs or not.  
Source JARs were not assigned to the corresponding binary JARs.

When importing the Gradle project depending an this module, Buildship tries to load the following:  
[http://myownrepo.net/ivy/com.acme/dummy.lib/1.2.3/dummy.lib-1.2.3-sources.jar](http://myownrepo.net/ivy/com.acme/dummy.lib/1.2.3/dummy.lib-1.2.3-sources.jar)

Any idea what’s going wrong?

Thanks in advance  
Peter

```
<?xml version="1.0"?>
<ivy-module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://ant.apache.org/ivy/maven" version="2.0">
  <info organisation="com.acme" module="dummy.lib" revision="1.2.3">
    <description></description>
  </info>
  <configurations>
    <conf name="i486-windowsNT"/>
  </configurations>
  <publications>
    <artifact name="ALib-i486-windowsNT" type="jar" ext="jar" conf="i486-windowsNT"/>
    <artifact name="BLib-i486-windowsNT" type="jar" ext="jar" conf="i486-windowsNT"/>
    <artifact name="ALib-i486-windowsNT" type="source" ext="jar" conf="i486-windowsNT" m:classifier="sources"/>
    <artifact name="BLib-i486-windowsNT" type="source" ext="jar" conf="i486-windowsNT" m:classifier="sources"/>
  </publications>
  <dependencies/>
</ivy-module>
```
