Due to some reasons unfathomable for mere mortals sun/oracle decided to have two implementations for javax.annotations.Resource with different fields one in the JDK the other one in the J2EE libs. Of course the compiler decides to take the wrong one. What is the correct way in gradle to fix this?
I’ve added the correct dependency
compile (group: ‘javax’, name: ‘javaee-endorsed-api’, version: ‘6.0’) }
For Mavan the suggested solution is this http://jaitechwriteups.blogspot.com/2011/02/resource-and-new-lookup-attribute-how.html