build.gradle
tasks.named("bootJar") { archiveName = "$baseName.$extension" }
References
https://stackoverflow.com/questions/53123012/spring-boot-2-change-jar-name
https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#packaging-executable.jars