task makeJar(type: Copy) {
delete
'build/libs/test.jar'
from(
'build/intermediates/bundles/release/'
)
into(
'build/libs/'
include(
'classes.jar'
rename(
, test.jar')
}
makeJar.dependsOn(build)