I am trying with Gradle first time. I am trying with a maven java project to compile and create a jar file. It is compiling and creating the jar file in build/libs directory as
In Kotlin DSL you can also use:
tasks.jar { archiveFileName.set("app.jar") }
With Spring boot and Kotlin DSL you can use:
tasks { bootJar { archiveFileName.set("app.jar") } }