# Add prefix to all artifacts

**URL:** <https://discuss.gradle.org/t/add-prefix-to-all-artifacts/10088>\
**Category:** Help/Discuss\
**Created:** [June 15, 2015, 8:47am UTC](https://discuss.gradle.org/t/add-prefix-to-all-artifacts/10088 "2015-06-15T08:47:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagioto](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sagioto/32/2438_2.png) [@sagioto](https://discuss.gradle.org/u/sagioto)\
**Post date:** [June 15, 2015, 8:47am UTC](https://discuss.gradle.org/t/add-prefix-to-all-artifacts/10088/1 "2015-06-15T08:47:17Z")

</div>

Hi,

I have a multi project model,  
I want to add a prefix to all artifacts created by the sub-projects be it jar or war files

How can I define it in a single place?

---

<div class="post-metadata">

**Author:** ![sagioto](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sagioto/32/2438_2.png) [@sagioto](https://discuss.gradle.org/u/sagioto)\
**Post date:** [June 16, 2015, 9:08am UTC](https://discuss.gradle.org/t/add-prefix-to-all-artifacts/10088/2 "2015-06-16T09:08:44Z")

</div>

```
subprojects {
    apply plugin: 'java'
    archivesBaseName = "prefix-${it.name}"
}
```
