# General question about the Syntax in a script

**URL:** <https://discuss.gradle.org/t/general-question-about-the-syntax-in-a-script/4139>\
**Category:** Old Forum Archive\
**Created:** [October 16, 2014, 11:58am UTC](https://discuss.gradle.org/t/general-question-about-the-syntax-in-a-script/4139 "2014-10-16T11:58:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Mathe](https://avatars.discourse-cdn.com/v4/letter/o/96bed5/32.png) [@Olivier\_Mathe](https://discuss.gradle.org/u/Olivier_Mathe)\
**Post date:** [October 16, 2014, 11:58am UTC](https://discuss.gradle.org/t/general-question-about-the-syntax-in-a-script/4139/1 "2014-10-16T11:58:00Z")

</div>

In a script using the Java plugin (apply plugin: ‘java’) I have found in some examples the following instruction :

jar {

manifest {

attributes ‘Implementation-Title’: ‘Gradle Quickstart’,

‘Implementation-Version’: version

} } My general question is : what represent jar ? A method ? An instance of a task ? … Where can I find the specification of jar ? In the DSL, the JavaDoc, GroovyDoc ?

Olivier

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [October 16, 2014, 4:15pm UTC](https://discuss.gradle.org/t/general-question-about-the-syntax-in-a-script/4139/2 "2014-10-16T16:15:00Z")

</div>

The ‘jar’ task is added by the Java plugin (see the Java plugin chapter in the [Gradle User Guide](http://gradle.org/docs/current/userguide/userguide_single.html)). The ‘Jar’ task type is documented in the [Gradle Build Language Reference](http://gradle.org/docs/current/dsl/index.html).

Technically, ‘jar { … }’ is a (dynamic) method call with a single (Groovy closure) argument, but usually we don’t think of it this way. Instead we think of it as configuring a model element (task in this case) named ‘jar’.
