2015-05-19 00:23:35 -04:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
|
|
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
|
|
|
*/
|
2010-10-09 14:27:47 -04:00
|
|
|
dependencies {
|
2012-03-09 14:34:02 -05:00
|
|
|
compile project( ':hibernate-core' )
|
2012-08-08 05:09:11 -04:00
|
|
|
compile( libraries.c3p0 )
|
2012-03-09 14:34:02 -05:00
|
|
|
|
2015-07-29 09:56:59 -04:00
|
|
|
testCompile project( ':hibernate-testing' )
|
|
|
|
|
2012-03-21 18:25:32 -04:00
|
|
|
testCompile( libraries.validator ) {
|
|
|
|
// for test runtime
|
|
|
|
transitive = true
|
|
|
|
}
|
2015-07-29 09:56:59 -04:00
|
|
|
// EL libraries are provided scope in Validator
|
2017-12-14 04:20:02 -05:00
|
|
|
testRuntime( libraries.expression_language )
|
2016-06-17 20:15:08 -04:00
|
|
|
|
2017-02-13 09:48:43 -05:00
|
|
|
if (db.equalsIgnoreCase("oracle")) {
|
|
|
|
dependencies {
|
2017-04-12 03:31:56 -04:00
|
|
|
testRuntime( libraries.oracle ) {
|
|
|
|
exclude group: 'com.oracle.jdbc', module: 'xmlparserv2'
|
|
|
|
}
|
2017-02-13 09:48:43 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-17 20:15:08 -04:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Java 9 ftw!
|
|
|
|
if ( JavaVersion.current().isJava9Compatible() ) {
|
|
|
|
// The JDK used to run Gradle is Java 9+, and we assume that that is the same
|
|
|
|
// JDK for executing tasks
|
|
|
|
compile( 'com.sun.xml.bind:jaxb-impl:2.2.11' )
|
|
|
|
compile( 'org.glassfish.jaxb:jaxb-xjc:2.2.11' )
|
|
|
|
compile( 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
|
|
|
|
compile( 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
|
|
|
|
compile( 'javax:javaee-api:7.0' )
|
|
|
|
|
|
|
|
testCompile( 'com.sun.xml.bind:jaxb-impl:2.2.11' )
|
|
|
|
testCompile( 'org.glassfish.jaxb:jaxb-xjc:2.2.11' )
|
|
|
|
testCompile( 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
|
|
|
|
testCompile( 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
|
|
|
|
testCompile( 'javax:javaee-api:7.0' )
|
|
|
|
|
|
|
|
testRuntime( 'com.sun.xml.bind:jaxb-impl:2.2.11' )
|
|
|
|
testRuntime( 'org.glassfish.jaxb:jaxb-xjc:2.2.11' )
|
|
|
|
testRuntime( 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' )
|
|
|
|
testRuntime( 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.11.0' )
|
|
|
|
testRuntime( 'javax:javaee-api:7.0' )
|
|
|
|
}
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2013-01-23 18:22:03 -05:00
|
|
|
}
|
|
|
|
|
2015-04-10 12:58:22 -04:00
|
|
|
mavenPom {
|
|
|
|
name = 'Hibernate/c3p0 Integration'
|
|
|
|
description = 'Integration for c3p0 Connection pooling into Hibernate O/RM'
|
2013-04-16 19:25:20 -04:00
|
|
|
}
|
2013-12-02 21:53:19 -05:00
|
|
|
|
|
|
|
def osgiDescription() {
|
2015-04-10 12:58:22 -04:00
|
|
|
return mavenPom.description
|
2017-12-14 04:20:02 -05:00
|
|
|
}
|