Multiple modules with same build type <p>I have a gradle android project with two modules:</p> <ul> <li>Wear</li> <li>App (which is the phone app)</li> </ul> <p>In my gradle configuration I have different build types. The defaults (debug and release, each with custom settings), and dev and beta build type (also with custom signing, custom proguard and custom applicationIdSuffix.</p> <p>What I now want to do is to build the app package with for example the buildType beta (gradle clean assembleBeta). That starts building the app in beta, sees that it has a dependency to wear, and starts building wear. BUT here's the problem. The wear module is being built with the release build type instead of the same beta-build-type I used to initiate the build.</p> <p>The custom build type configuration is exactly the same on the two modules, and thus manually building the wear module with beta build type does work. But having a wear module built with beta and packaged inside the app module also built with beta does not work.</p> <p>Any ideas how I can achieve that?</p>