hibernate-orm/hibernate-spatial/hibernate-spatial.gradle

54 lines
1.7 KiB
Groovy
Raw Normal View History

/*
* 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>.
*/
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
apply plugin: 'org.hibernate.matrix-test'
2015-04-30 00:21:38 -04:00
dependencies {
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
}
sourceSets.test.resources {
setSrcDirs( ['src/test/java', 'src/test/resources'] )
}
2021-08-26 10:43:33 -04:00
tasks.test {
// 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',
// 'h2', -- for now we cannot run with 'h2'due to compatability issues we needs H2 at 4.200 but H2GIS only works with 4.197
// 'pgsql_ci', -- disable running in CI until typing issues are resolved
'cockroachdb',
'mariadb',
// 'mysql_ci',
'mysql_docker'].contains( project.db )
}
tasks.test.include '**/*'