# What is script block in Gradle

**URL:** <https://discuss.gradle.org/t/what-is-script-block-in-gradle/37807>\
**Category:** Help/Discuss\
**Created:** [October 5, 2020, 5:51pm UTC](https://discuss.gradle.org/t/what-is-script-block-in-gradle/37807 "2020-10-05T17:51:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![explorer1680](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@explorer1680](https://discuss.gradle.org/u/explorer1680)\
**Post date:** [October 5, 2020, 5:51pm UTC](https://discuss.gradle.org/t/what-is-script-block-in-gradle/37807/1 "2020-10-05T17:51:14Z")

</div>

I thought script block is a method + closure, is it correct?  
Why some type like [Project](https://docs.gradle.org/current/dsl/org.gradle.api.Project.html) have a lot of script block, but [Task](https://docs.gradle.org/current/dsl/org.gradle.api.Task.html) don’t have any of them?

Thanks.
