@@ -72,6 +72,29 @@ dependencies {
7272 testCompile libraries. shrinkwrap_descriptors_api_javaee
7373 testCompile libraries. shrinkwrap_descriptors_impl_javaee
7474 testCompile libraries. wildfly_arquillian_container_managed
75+
76+ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77+ // Java 9 ftw!
78+ if ( JavaVersion . current(). isJava9Compatible() ) {
79+ compile( ' com.sun.xml.bind:jaxb-impl:2.2.11' )
80+ compile( ' org.glassfish.jaxb:jaxb-xjc:2.2.11' )
81+ compile( ' org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
82+ compile( ' org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
83+ compile( ' javax:javaee-api:7.0' )
84+
85+ testCompile( ' com.sun.xml.bind:jaxb-impl:2.2.11' )
86+ testCompile( ' org.glassfish.jaxb:jaxb-xjc:2.2.11' )
87+ testCompile( ' org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
88+ testCompile( ' org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
89+ testCompile( ' javax:javaee-api:7.0' )
90+
91+ testRuntime( ' com.sun.xml.bind:jaxb-impl:2.2.11' )
92+ testRuntime( ' org.glassfish.jaxb:jaxb-xjc:2.2.11' )
93+ testRuntime( ' org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
94+ testRuntime( ' org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
95+ testRuntime( ' javax:javaee-api:7.0' )
96+ }
97+ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7598}
7699
77100
@@ -154,12 +177,6 @@ build.dependsOn createModulesZip
154177// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155178// tasks related to in-container (Arquillian + WF) testing
156179
157- if ( JavaVersion . current(). isJava9Compatible() ) {
158- logger. lifecycle( " WARNING - Skipping hibernate-orm-modules tests for Java 9" )
159- // WildFly has problems booting in Java 9
160- test. enabled = false
161- }
162-
163180task installWildFly (type : Copy ) {
164181 description = ' Downloads the WildFly distribution and installs it into a local directory (if needed)'
165182
0 commit comments