# Gradle Jar task not working after upgrade from 0.9.2 to 2.1 version

**URL:** https://discuss.gradle.org/t/gradle-jar-task-not-working-after-upgrade-from-0-9-2-to-2-1-version/2980
**Category:** Old Forum Archive
**Created:** [October 10, 2014, 10:48am UTC](https://discuss.gradle.org/t/gradle-jar-task-not-working-after-upgrade-from-0-9-2-to-2-1-version/2980 "2014-10-10T10:48:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Garvit](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@Garvit](https://discuss.gradle.org/u/Garvit)
#### Post date: [October 10, 2014, 10:48am UTC](https://discuss.gradle.org/t/gradle-jar-task-not-working-after-upgrade-from-0-9-2-to-2-1-version/2980/1 "2014-10-10T10:48:00Z")

</div>

Hi, i am upgrading from 0.9.2 to 2.1 version but the jar task is not working, below is my gradle.build file -

apply plugin: ‘java’

task testJar(type: Jar) {

archiveName = ‘abc.jar’

}

The same code is working with gradle version 0.9.2 but not with gradle version 1.5 or gradle version 2.1

Please check and let me know, if i need to change this in order to make this work with 1.5 or 2.1 gradle versions.
