How to merge clsses from multiple jars into one single jar?

I have multiple jar files generated from proguard. Now I need to merge all classes and all other files of part of them into a single jar file. Does anyone know how to write it in gradle?
I wrote it like the following, but nothing comes out.
task finals(type: Jar, dependsOn: subprojects.proguard) {
from(“${buidDir}/…/…/aDir/bDir/”)
include(‘jarA.jar’)
include(‘jarB.jar’)
archiveName=“jarC.jar”
distinationDir=file(“${buidDir}/…/…/aDir/bDir”)
}

I solved this problem. I wrote it like:
task finals(type: Jar, dependsOn: subprojects.proguard) {
from(“${buidDir}/…/…/aDir/bDir/jarA.jar")
from(“${buidDir}/…/…/aDir/bDir/jarB.jar")
archiveName=“jarC.jar”
distinationDir=file(“${buidDir}/…/…/aDir/bDir”)
}