# How can I make a jar task create jar with specific name without using deprecated archiveName?

**URL:** <https://discuss.gradle.org/t/how-can-i-make-a-jar-task-create-jar-with-specific-name-without-using-deprecated-archivename/30606>\
**Category:** Help/Discuss\
**Created:** [February 16, 2019, 4:42pm UTC](https://discuss.gradle.org/t/how-can-i-make-a-jar-task-create-jar-with-specific-name-without-using-deprecated-archivename/30606 "2019-02-16T16:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nddipiazza](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@nddipiazza](https://discuss.gradle.org/u/nddipiazza)\
**Post date:** [February 16, 2019, 4:42pm UTC](https://discuss.gradle.org/t/how-can-i-make-a-jar-task-create-jar-with-specific-name-without-using-deprecated-archivename/30606/1 "2019-02-16T16:42:20Z")

</div>

The jar task has changed.

[https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:archiveName](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:archiveName)

A bunch of things are deprecated now like:

archiveName  
baseName

What is the new way to build a jar file with a specific name?
