Specify group and module for all exclusions in non-test configurations

Gradle will only include an exclusion in a generated pom file if both
a group and module are specified. Test dependencies are not included
in generated pom files so they are not a concern.

This commit updates all non-test exclusions to specify both a group
and a module.