How to Change the Name of the JAR Produced in Gradle

I don’t like the traditional JAR name assigned in Gradle. In Bukkit development, you usually make the JAR name the same as the plugin name. Here’s how you set the name of the JAR:

1
jar.baseName = 'JarName'

Where JarName would be the name of the jar generated in build/libs/.

Source: StackOverflow


Thanks for reading my post! If you enjoyed it or it helped you, please consider liking/tweeting this page, commenting, or following me on GitHub or Twitter!