@@ -22,21 +22,39 @@ dependencies {
2222 testCompile group : ' ch.qos.logback' , name : ' logback-classic' , version :' 1.2.3'
2323 testCompile group : ' org.hsqldb' , name : ' hsqldb' , version :' 2.4.0'
2424 compileOnly group : ' org.jdom' , name : ' jdom2' , version :' 2.0.6'
25- compileOnly group : ' com.io7m.xom' , name : ' xom' , version : ' 1.2.10'
2625 compileOnly group : ' dom4j' , name : ' dom4j' , version :' 1.6.1'
2726 compileOnly group : ' com.google.code.gson' , name : ' gson' , version :' 2.8.2'
2827 compileOnly group : ' net.sourceforge.htmlcleaner' , name : ' htmlcleaner' , version :' 2.21'
2928 compileOnly group : ' com.opencsv' , name : ' opencsv' , version : ' 4.1'
3029 compileOnly group : ' org.geonames' , name : ' geonames' , version :' 1.0'
3130 compileOnly group : ' org.springframework' , name : ' spring-jdbc' , version : ' 5.0.4.RELEASE'
32-
31+ // uncomment to build XOMHandle
32+ // compileOnly group: 'com.io7m.xom', name: 'xom', version: '1.2.10'
33+ }
34+
35+ // comment the exclusion to build XOMHandle
36+ compileJava {
37+ exclude (
38+ ' com/marklogic/client/extra/xom/**' ,
39+ ' com/marklogic/client/example/handle/XOMHandleExample.java'
40+ )
41+ }
42+
43+ // comment the exclusion to test XOMHandle
44+ compileTestJava {
45+ exclude (
46+ ' com/marklogic/client/test/extra/XOMHandleTest.java'
47+ )
3348}
3449
3550jar {
36- exclude (' search.xsd' ,' search-bindings.xjb' ,' query-options-template.xml' ,
37- ' com/marklogic/client/example/**' , ' data/**' , ' Example' +
38- ' .properties' , ' example/**' , ' scripts/**' , ' *.txt' , ' property' +
39- ' .xsd' , ' restapi-bindings.xjb' , ' security.xsd' )
51+ exclude (
52+ ' search.xsd' , ' search-bindings.xjb' , ' query-options-template.xml' ,
53+ ' com/marklogic/client/example/**' , ' data/**' , ' Example.properties' ,
54+ ' example/**' , ' scripts/**' , ' *.txt' , ' property.xsd' ,
55+ ' restapi-bindings.xjb' , ' security.xsd' ,
56+ ' com/marklogic/client/extra/xom/**'
57+ )
4058}
4159task sourcesJar (type : Jar ) {
4260 classifier = ' sources'
@@ -53,7 +71,11 @@ javadoc {
5371 options. bottom = " Copyright © 2013-2018 MarkLogic Corporation."
5472 options. links = [ ' http://docs.oracle.com/javase/8/docs/api/' ]
5573 options. use = true
56- exclude([' **/impl/**' , ' **/jaxb/**' , ' **/test/**' ])
74+ exclude([
75+ ' **/impl/**' , ' **/jaxb/**' , ' **/test/**' ,
76+ ' com/marklogic/client/extra/xom/**' ,
77+ ' com/marklogic/client/example/handle/XOMHandleExample.java'
78+ ])
5779}
5880
5981task javadocJar (type : Jar , dependsOn : javadoc) {
0 commit comments