Excluding transitive dependency does not work for project dependency

This is a syntax issue. The closure in which you are calling exclude is being interpreted as an argument to the project() method, which is incorrect. Should look like so:

compile(project(':baseproject')) {
    exclude group: 'com.miglayout'
}
8 Likes