2012-02-29 11:30:40 -05:00
|
|
|
/*
|
2015-05-19 00:23:35 -04:00
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
2012-02-29 11:30:40 -05:00
|
|
|
*
|
2015-05-19 00:23:35 -04:00
|
|
|
* 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>.
|
2012-02-29 11:30:40 -05:00
|
|
|
*/
|
2018-01-10 16:06:58 -05:00
|
|
|
|
2020-04-06 13:21:11 -04:00
|
|
|
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
|
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
|
2021-07-14 12:44:35 -04:00
|
|
|
apply plugin: 'org.hibernate.matrix-test'
|
2013-05-06 16:26:28 -04:00
|
|
|
|
2015-04-30 00:21:38 -04:00
|
|
|
|
2011-07-23 09:39:27 -04:00
|
|
|
dependencies {
|
2021-11-04 03:26:49 -04:00
|
|
|
api project( ':hibernate-core' )
|
|
|
|
api libraries.geolatte
|
|
|
|
|
|
|
|
compileOnly libraries.postgresql
|
|
|
|
|
|
|
|
testImplementation project( ':hibernate-testing' )
|
|
|
|
testImplementation project( ':hibernate-ant' )
|
|
|
|
testImplementation project( path: ':hibernate-core', configuration: 'tests' )
|
|
|
|
testImplementation libraries.jakarta_validation
|
|
|
|
testImplementation libraries.jandex
|
|
|
|
testImplementation libraries.classmate
|
|
|
|
testImplementation libraries.jakarta_validator
|
|
|
|
testImplementation libraries.dom4j
|
|
|
|
|
|
|
|
testImplementation libraries.postgresql
|
|
|
|
testImplementation libraries.h2gis
|
|
|
|
|
|
|
|
testRuntimeOnly libraries.jakarta_el
|
|
|
|
testRuntimeOnly 'jaxen:jaxen:1.1'
|
|
|
|
testRuntimeOnly libraries.byteBuddy
|
2011-07-23 09:39:27 -04:00
|
|
|
}
|
|
|
|
|
2012-02-29 11:30:40 -05:00
|
|
|
sourceSets.test.resources {
|
2021-11-04 03:26:49 -04:00
|
|
|
setSrcDirs( ['src/test/java', 'src/test/resources'] )
|
2011-07-23 09:39:27 -04:00
|
|
|
}
|
2021-08-26 10:43:33 -04:00
|
|
|
|
|
|
|
tasks.test {
|
2021-11-04 03:26:49 -04:00
|
|
|
// for now we cannot run with 'h2' project.db due to compatability issues H2 requires 4.200 but H2GIS 1.5 needs 4.197
|
|
|
|
enabled = ['pgsql',
|
2021-11-11 06:28:44 -05:00
|
|
|
'h2',
|
|
|
|
'pgsql_ci',
|
2021-11-04 03:26:49 -04:00
|
|
|
'cockroachdb',
|
|
|
|
'mariadb',
|
2021-11-11 06:28:44 -05:00
|
|
|
'mysql_ci',
|
|
|
|
'mysql_docker'
|
|
|
|
].contains( project.db )
|
2021-04-13 12:13:30 -04:00
|
|
|
}
|
|
|
|
|
2021-08-26 17:45:36 -04:00
|
|
|
tasks.test.include '**/*'
|
2021-04-13 12:13:30 -04:00
|
|
|
|