I am using Spring Boot 2 in my Gradle project to do a build to jar in Jenkins, and I would like to change the name of that jar file.
By default, Spring Boot 2 used the G
You can also use:
tasks.bootJar { archiveFileName.set("app.jar") }
Or with the jar-plugin
tasks.jar { archiveFileName.set("app.jar") }