IntelliJ - enable the module, but exclude from the assembly

I am trying to do the following:

Include the Android module in my project. Excluding it from the actual assembly (if you, for example, click rebuild project).

Background: compiling an Android module takes 20 seconds. I do not want to wait, because at the moment I am doing only tests on the desktop. But I can’t completely remove the Android module from the project, I would lose the possibility of refactoring (it won’t work later, for example, I renamed the classes to the library project).

Any ideas how I can tell him, for example, and not Android DEX (rewriting the assembly in Android ANT script with a blank is one of the ways that comes to mind). Any advice is appreciated ...

Chris

+4
source share

Source: https://habr.com/ru/post/1436575/


All Articles