groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mr Andersson <>
Subject Re: Integrating Groovy with a Java EE application and Maven
Date Sun, 26 Jun 2016 07:14:39 GMT

On 06/24/2016 10:40 PM, Jochen Theodorou wrote:
> On 24.06.2016 17:41, Mr Andersson wrote:
> [...]
>> If you want to convince me of switching, i am still looking/waiting for
>> someone to offer cyclic dependency support between modules, since
>> without it, my code is getting more complex than need be.
> then you probably do not want modules, but just multiple source 
> folders... because what advantages are left of modules if they are 
> cyclic?

Access rights. Even if a module/package is a cyclic, unless another 
module has specifically declared that you can access it, can you access 
it. It is like packages, but with access rules attached to them, which 
does not exist currently.

> [...]
>> I also have hate the fact that I have to keep creating modules for every
>> thing. If I have a module Core containing many utility classes, another
>> module should be able to import only a package from Core, alternatively
>> only a class from Core. That might be tricky, but it is desirable, and
>> not unresolvable. Take the case where I decide to publish an Opensource
>> library using a few things out of Core. Now I have to create another
>> module move things out of Core, to expose and share only what is
>> required with world.  If another opensource library is created that uses
>> something else from Core, and something from the already extracted
>> module, then we end up in hell.
> you can filter sources/classes by (package)name... even create virtual 
> projects in gradle

Cool, i need to look at those things eventually. I think maybe gradle 
can offer me this kind of power where i can exactly decide using tasks 
what something includes and does not include.

> bye Jochen

View raw message