DexGuard the submodule of an Android project

We have the following setup:

  • We build and ship an Library for our clients. The SDK is obfuscated with DexGuard
  • That Library is also used in our application. Our application should use the same AAR file that is shipped also to the clients that is obfuscated.

Till version 2.3.* of Android plugin it was building the AAR file and reusing then that library for the app. From version 3.0 it does not seems to be the case. I have the feeling that it is using directly the files.

Is there a way to force the same process - to build the AAR and then to use it from the app?

Thanks and Kind Regards