stianh / gradle-jaxb-plugin

Gradle plugin for generating jaxb classes.
17 stars 11 forks source link

gradle-jaxb-plugin pulls down jaxb, I want to use JDK native jaxb integration #28

Open jvsrvcs opened 10 years ago

jvsrvcs commented 10 years ago

When I followed the Usage example and ran a $gradle build, I got the following:

Download http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-xjc/2.2.4-1/jaxb-xjc-2.2.4-1.pom
Download http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.4-1/jaxb-impl-2.2.4-1.pom
Download http://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.3/jaxb-api-2.2.3.pom
Download http://repo1.maven.org/maven2/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.pom
Download http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-xjc/2.2.4-1/jaxb-xjc-2.2.4-1.jar
Download http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.4-1/jaxb-impl-2.2.4-1.jar
Download http://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.3/jaxb-api-2.2.3.jar
Download http://repo1.maven.org/maven2/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar

Notice this is pulling down jars from com.sun.xml.bind.jaxb-api/2.2.3/jaxb-api-2.2.3.jar and jaxb-xjc and jaxb-impl and stax-api and much more.

I don't want to use any of those; I am using JDK 1.6 which does not need these jars as dependencies; I want to use the JAXB capabilities built into the JDK.

How to make this plugin work so that it only pulls what is needed when using JDK 1.6 or higher? Can the Usage section be updated (as most of the free world is on JDK 1.6 or higher?)

Very confused by using this plugin.