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
if you want to append a date to the jar file name, you can do it like this:
jar { baseName +='_' +new java.text.SimpleDateFormat("dd_MM_yyyy").format(new java.util.Date()) println(baseName) // just to verify
which results in _07_05_2020.jar
_07_05_2020.jar