# How would the Groovy plugin DSL look after removing \`GroovySourceSet\`

**URL:** <https://discuss.gradle.org/t/how-would-the-groovy-plugin-dsl-look-after-removing-groovysourceset/42775>\
**Category:** Help/Discuss\
**Created:** [April 23, 2022, 4:44pm UTC](https://discuss.gradle.org/t/how-would-the-groovy-plugin-dsl-look-after-removing-groovysourceset/42775 "2022-04-23T16:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tudortimi](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tudortimi/32/6369_2.png) [@tudortimi](https://discuss.gradle.org/u/tudortimi)\
**Post date:** [April 23, 2022, 4:44pm UTC](https://discuss.gradle.org/t/how-would-the-groovy-plugin-dsl-look-after-removing-groovysourceset/42775/1 "2022-04-23T16:44:27Z")

</div>

I saw that `GroovySourceSet` was deprecated with

> <https://github.com/gradle/gradle/commit/54828a019ffc57438af3ded58c43d4f8e8aaa592>

How will the DSL look like once this class is removed in Gradle 8? Will it still be possible to do the following:

```gradle
sourceSets {
    main {
        groovy {
            srcDir "some_dir"
            srcDir "some_other_dir"
        }
    }
}

```

As far as I understood, the `{ srcDir ... }` was handled by the `GroovySourceSet.groovy(@Nullable Closure configureClosure)` method (added via a convention), which “converted” the script to something like:

```gradle
sourceSets {
    main {
        groovy.srcDir "some_dir"
        groovy.srcDir "some_other_dir"
    }
}

```

Will the first form with the closure still be possible? Is there some other hidden machinery that makes it possible or will there be any?
