I have a project that needs to build two different EARs. Since the plugin only handles one ‘earlib’ configuration, how can I adjust the earlib for each EAR task? I have a set of common libs for both ears, and then for one of the EARs I need to add an additional set of dependencies.
I tried the following:
task myEar (type: Ear) {
from {
configurations.earlibExtra
into 'lib/'
}
}
The problem is that I get circular dependency errors. Other methods work, but the dependencies go into the EAR root and not ‘/lib’. Can this be solved without splitting the project?