# How to add a sourceSet without using any plugins

**URL:** https://discuss.gradle.org/t/how-to-add-a-sourceset-without-using-any-plugins/9510
**Category:** Help/Discuss
**Created:** [May 6, 2015, 6:07pm UTC](https://discuss.gradle.org/t/how-to-add-a-sourceset-without-using-any-plugins/9510 "2015-05-06T18:07:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stewartbryson](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stewartbryson/32/9981_2.png) [@stewartbryson](https://discuss.gradle.org/u/stewartbryson)
#### Post date: [May 6, 2015, 6:07pm UTC](https://discuss.gradle.org/t/how-to-add-a-sourceset-without-using-any-plugins/9510/1 "2015-05-06T18:07:50Z")

</div>

I’m not using any of the Gradle JVM language plugins (groovy, java, scala, etc.)… and the only plugin I apply to the project is the Base plugin.

What’s the best way to add one or more sourceSets to my project?

---

<div class="post-metadata">

### Author: ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)
#### Post date: [May 7, 2015, 12:24pm UTC](https://discuss.gradle.org/t/how-to-add-a-sourceset-without-using-any-plugins/9510/2 "2015-05-07T12:24:04Z")

</div>

The `SourceSet` concept is added by the `java-base` plugin. At the moment you’ll have to apply this plugin. In the long run SourceSets will become a more general concept.

---

<div class="post-metadata">

### Author: ![stewartbryson](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stewartbryson/32/9981_2.png) [@stewartbryson](https://discuss.gradle.org/u/stewartbryson)
#### Post date: [May 7, 2015, 1:36pm UTC](https://discuss.gradle.org/t/how-to-add-a-sourceset-without-using-any-plugins/9510/3 "2015-05-07T13:36:28Z")

</div>

Thanks Benjamin. Nice to hear that the roadmap has them as a core concept.
