Use debug variants of compile project dependencies in |mach gradle| Fennec build




Firefox for Android
Build Config & IDE Support
3 years ago
6 months ago


(Reporter: nalexander, Unassigned)


Firefox Tracking Flags

(Not tracked)




3 years ago
IntelliJ does a foolish thing when you "Make" a Gradle-based project: it asks Gradle to build app:assembleDebug, library1:assembleDebug, ..., libraryN:assembleDebug.  Due to an implementation quirk, the Debug variant of :app relies on the /Release/ variant of :library1 through :libraryN.  So we end up building both Debug and Release variants of each library.  (I think.)  See

We should experiment with hard-depending on specific configurations in our build.gradle files.  I expect we can trim our build time in IntelliJ.  (From the command line, I always use just |mach gradle app:{assemble,install}Debug|, which should not do duplicate work.)

Code snippets are available at and

For information radiation: Android Studio has a more clever thing, which they call "Gradle Aware Make".


6 months ago
Component: Build Config → Build Config & IDE Support
Product: Core → Firefox for Android
You need to log in before you can comment on or make changes to this bug.