Может так?
jar {
from {
configurations.compile.resolvedConfiguration.resolvedArtifacts.findAll {
it.moduleVersion.id.with { it.group == 'com.googlecode.json-simple' && it.name == 'json-simple' }
} collect {
it.file.with { it.isDirectory() ? it : zipTree(it) }
}
}
}