Priority alone does not select the alternative. It still needs to be listed in the beans.xml. Perhaps I'm not clear about the selection of alternatives yet.
I did a quick test and it seems to work. Just add @javax.annotation.Priority(1000) to the TestMovieFacadeHelper and you should only get unsatisfied dependency for MovieRipService.
Bumping down Groovy version to 2.1.8 eliminates the NoClassDefFoundError. Almost certainly a Groovy/Gradle bug but I don't have time to follow up on that.
Good to know.
Thanks for feedback!
|