I need to generate jar file name by appending hash value in build/libs folder. I have to pass some argument to gradle command in command line to generate jar file name. as per my requirement.
For instance: gradle clean build -Djar.archiveName=Testfile-12634.jar (it is not working)
as a result, it should generate jar file name like "Testfile-12634.jar under build/libs folder
Currently jar file is generating like “Testfile.jar” , i want to append hash value (-12634) to that jar file but through gradle command only.