# Multi project distribution

**URL:** <https://discuss.gradle.org/t/multi-project-distribution/2675>\
**Category:** Old Forum Archive\
**Created:** [July 16, 2013, 8:40pm UTC](https://discuss.gradle.org/t/multi-project-distribution/2675 "2013-07-16T20:40:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sason\_Ohanian](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sason\_Ohanian](https://discuss.gradle.org/u/Sason_Ohanian)\
**Post date:** [July 16, 2013, 8:40pm UTC](https://discuss.gradle.org/t/multi-project-distribution/2675/1 "2013-07-16T20:40:00Z")

</div>

Hi! I’m trying to make a dist of a multi project build. The root project looks something like this:

```gradle
apply plugin: 'distribution'
version 1.0
distributions {
    main {
        baseName = 'someName'
        contents {
            from 'nodes'
      into 'nodes'
        }
    }
}

```

It just copies a folder with some files to the dist.

I now want each subproject to inject its stuff into the dist. I want to add each subprojects jar, any dependecies, and possibly some other files etc…

I have no idea how to inject from the subproject to the root. Should I even do something like that? What i mean is something like this:

```gradle
subprojects {
   apply java...
   ...
     // pseudocode
   jack into the root project dist plugin
   put my produced jars and dependencies in a folder with my name
   ...
}

```

thanks!
