I try to build jar and after that copy it to another folder.
task createJar(type: Jar) { archiveName = \"GradleJarProject.jar\" manifest {
Just made few corrections to above Answers:
jar { baseName = "$artifactId" version = '0.0.1' } task copyJar(type: Copy) { from jar // copies output of file produced from jar task into 'destination-folder' } build.finalizedBy copyJar