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
Most people simply want to not have the version in the jar name, not change the name completely.
tasks.withType { archiveVersion.set("") }
will do it using Kotlin DSL. The final name is given by tasks.bootJar.get().archiveFileName.get().
tasks.bootJar.get().archiveFileName.get()