For eclipse-aether you must, because the signature of some method calls of
ProjectBuildingRequest have changed.
You won't be able to compile the code.
Trying to do something like this won't work:
Object repoSession = buildingRequest.getRepositorySession()
if (isMaven31())
{
// cast to eclipse session
}
else
{
// cast to sonatype session
}
I've decided to keep to codeblocks the same, but for sonatype you can do
it without reflection.
You could split it into separate modules, but I wonder if it's worth it.
Also notice that for the RepositoryManager I actually needed to write 3
implementations.
Robert
Op Sun, 14 Jun 2015 20:33:47 +0200 schreef Kristian Rosenvold
<[email protected]>:
As long as each class is either sonatype-aether or eclipse-aether, it
does
not really need reflection ?
K
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]