As you can see the module file is correctly configured with 1.11 but when moving to 1.12 it fails to add the configuration as an orderEntry. Looks like this is an regression from http://issues.gradle.org/browse/GRADLE-2017.