Not sure if I'm missing something, but this is as simple as: settings.gradle: include 'java-module' java-module/build.gradle: apply plugin: 'java'
i.e. just follow gradle's approach to adding a new module and apply java plugin on that module. Your trouble begins if you now go on and say you want Roboelectric, but that has been rehashed many times :) On Tue, Aug 26, 2014 at 3:24 PM, Michael Wallstedt <[email protected] > wrote: > What is the recommended way to define a module containing plain Java code > that I want to include in my project? I assume this needs to be done at the > gradle level, since changes that only manipulates .iml files will be lost > on a "gradle sync". If I use the android gradle plugin, am I required to > provide some sort of dummy manifest? > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
