1
1
configurations {
2
2
castor
3
3
xjc
4
- xmlbeans
5
4
jibx
6
5
}
7
6
dependencies {
8
7
castor " org.codehaus.castor:castor-anttasks:1.4.1"
9
8
castor " org.apache.velocity:velocity:1.7"
10
9
xjc " com.sun.xml.bind:jaxb-xjc:2.1.17"
11
- xmlbeans " org.apache.xmlbeans:xmlbeans:2.6.0"
12
10
jibx " org.jibx:jibx-bind:1.2.6"
13
11
jibx " bcel:bcel:5.1"
14
12
}
@@ -39,7 +37,7 @@ task genCastor {
39
37
castor(types : " j2" , warnings : false , file : orderSchema, todir : sourcesDir,
40
38
package : " org.springframework.oxm.castor" , properties : castorBuilderProperties)
41
39
42
- javac(destdir : classesDir, source : 1.6 , target : 1.6 , debug : true ,
40
+ javac(destdir : classesDir, source : 1.8 , target : 1.8 , debug : true ,
43
41
debugLevel : " lines,vars,source" , classpath : configurations. castor. asPath) {
44
42
src(path : sourcesDir)
45
43
include(name : " **/*.java" )
@@ -74,7 +72,7 @@ task genJaxb {
74
72
produces(dir : sourcesDir, includes : " **/*.java" )
75
73
}
76
74
77
- javac(destdir : classesDir, source : 1.6 , target : 1.6 , debug : true ,
75
+ javac(destdir : classesDir, source : 1.8 , target : 1.8 , debug : true ,
78
76
debugLevel : " lines,vars,source" ,
79
77
classpath : configurations. castor. asPath) {
80
78
src(path : sourcesDir)
@@ -91,25 +89,6 @@ task genJaxb {
91
89
}
92
90
}
93
91
94
- task genXmlbeans {
95
- ext. classesDir = " ${ buildDir} /classes/xmlbeans"
96
-
97
- inputs. files flightSchema
98
- outputs. dir classesDir
99
-
100
- doLast() {
101
- project. ant {
102
- taskdef name : " xmlbeans" ,
103
- classname : " org.apache.xmlbeans.impl.tool.XMLBean" ,
104
- classpath : configurations. xmlbeans. asPath
105
-
106
- xmlbeans(classgendir : classesDir, schema : flightSchema,
107
- compiler : " modern" , verbose : " false" ,
108
- classpath : configurations. xmlbeans. asPath)
109
- }
110
- }
111
- }
112
-
113
92
// add jibx binding to the normal test compilation process
114
93
// INCOMPATIBLE WITH OPENJDK 8 b89+
115
94
def jibxEnabled = project. properties. get(" testGroups" )?. toLowerCase()?. split(" ," )?. contains(" custom_compilation" )
0 commit comments