Hi there.
If you seek for some fix / implementation, this is the wrong place.
This is a community forum where users like me help other users.
If you think this is a bug / shortcoming of the shadow plugin, report it to the issue tracker of the shadow plugin.
If you think this is a bug / shortcoming of Gradle itself, report it to the issue tracker of Gradle.
If you think (I have no idea what nar is) this is a bug in the metadata of those three bookkeeper libraries - i.e. wrong packaging configured -, report it to the issue tracker of bookkeeper.
As far as your work-around goes, to correct erroneous or problematic dependency metadata, better use a component metadata rule, for example like this:
dependencies {
components {
['circe-checksum', 'cpu-affinity', 'native-io'].forEach { module ->
withModule("org.apache.bookkeeper:$module") {
allVariants {
withFiles {
addFile("$module-${id.version}.jar")
}
}
}
}
}
}