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

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

A bunch of things are deprecated now like:

archiveName
baseName

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

1 Like