Ensure exclusions on compile dependencies appear in generated poms

Gradle will only produce an exclusion in a generated pom if the
exclusion is declared with both a group and a module. This commit
updates all the exclusions on compile dependencies so that they are
declared with both a group and a module.