I’m trying to use gradle but having problems of exclusions. I want to include the JPA 2 jar, but we are using WebLogic 11g which uses the JPA 1 api. When I try and compile, gradle seems to include all of the jars that are in the weblogic jar classpath in the manifest. Consequently, I get compile errors on some of my JPA2 classes.
I’ve tried the normal excludes in the compile section, in the configuration section, I’ve tried the transitive=false, I’ve tried making the WebLogic jar last in the list. Nothing seems to work.
The gradle dependency report does not show the JPA 1 api, only the JPA 2 api.