On 08/03/2012 09:15 AM, Anders Hammar wrote:
What's the benefit of this approach rather than just having the user adding the 
dependencies directly to the plugin (execution) declaration?

Linkage safety. If you have the-plugin built directly against 
[email protected], and the user configures it to run against 
[email protected] or @1.6.3 etc., it
is hard to say in advance what will happen - it might work fine, or it might 
consistently throw errors due to signature changes in the-build-tool, or it 
might work in
most cases but throw errors in unusual circumstances when certain code paths 
are executed. Using an adapter allows the-plugin author to explicitly manage 
different
versions of the-build-tool. If the-build-tool has a very simple and stable 
interface it would be overkill.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to