Feature Request: configuration-specific project references

I’d like to be able to specify that a project reference only be included in a debug build. Specifically I’m wanting this to add LeakCanary to my Android project. LeakCanary should only ever run in debug builds, as it is a library that alerts the user when memory leaks occur. In Gradle this is done by adding the reference as debugImplementation instead of implementation. In EBuild I’d think something like this would be nice to have.

<GradleReference Include="com.squareup.leakcanary:leakcanary-android:2.4">

<Configuration>Debug</Configuration> should already work now, in EBuild. The IDEs won’t know about this though and treat the reference as being there for all configs.

1 Like

Well that was easy :sweat_smile:

1 Like