2015-05-18 23:23:35 -05: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>.
|
|
|
|
*/
|
2018-01-10 15:06:58 -06:00
|
|
|
|
2020-04-06 18:21:11 +01:00
|
|
|
description = 'Integration for Proxool Connection pooling into Hibernate O/RM'
|
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
|
|
|
|
|
|
|
|
|
2010-10-09 13:31:54 -05:00
|
|
|
dependencies {
|
2012-03-09 13:34:02 -06:00
|
|
|
compile project( ':hibernate-core' )
|
2012-08-08 17:09:11 +08:00
|
|
|
compile( libraries.proxool )
|
2013-11-26 17:48:25 -06:00
|
|
|
testCompile project( ':hibernate-testing' )
|
2013-12-02 20:53:19 -06:00
|
|
|
}
|
2020-12-14 14:39:24 +01:00
|
|
|
|
|
|
|
test {
|
|
|
|
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
|
|
|
|
// Proxool needs this to define classes for some reason. Stack trace:
|
|
|
|
// at org.logicalcobwebs.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:372)
|
|
|
|
// at org.logicalcobwebs.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:193)
|
|
|
|
// at org.logicalcobwebs.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
|
|
|
|
// at org.logicalcobwebs.cglib.core.KeyFactory.create(KeyFactory.java:149)
|
|
|
|
// at org.logicalcobwebs.cglib.proxy.Enhancer.<clinit>(Enhancer.java:96)
|
|
|
|
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
|
|
|
|
}
|
|
|
|
}
|