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

88 lines
3.1 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>.
*/
apply plugin: 'java'
apply plugin: 'hibernate-matrix-testing'
//Temporary repository config, until geolatte-geom is released in maven central.
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
2015-04-30 00:21:38 -04:00
mavenPom {
name = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
description = 'Integrate support for Spatial/GIS data into Hibernate O/RM'
}
dependencies {
compile(project(':hibernate-core'))
2015-11-30 04:04:09 -05:00
compile('org.postgresql:postgresql:9.4-1200-jdbc41')
compile([group: 'org.geolatte', name: 'geolatte-geom', version: '1.0.4'])
compile(libraries.dom4j) {
transitive = false
}
Backports HIBSPA-95 HIBSPA-99, HIBSPA-100, HIBSPA-101, HIBSPA-102. Conflicts: hibernate-spatial/databases/mysql5_innodb/resources/hibernate.properties hibernate-spatial/hibernate-spatial.gradle hibernate-spatial/src/main/java/org/hibernate/spatial/criterion/DWithinExpression.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2geodb/GeoDBDialect.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2geodb/WKB.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/oracle/OracleJDBCTypeFactory.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/oracle/OracleSpatial10gDialect.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/oracle/SDOGeometry.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/oracle/SDOGeometryTypeDescriptor.java hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/oracle/SDOGeometryValueBinder.java hibernate-spatial/src/main/java/org/hibernate/spatial/integration/SpatialIntegrator.java hibernate-spatial/src/test/java/org/hibernate/spatial/integration/GeomEntity.java hibernate-spatial/src/test/java/org/hibernate/spatial/integration/TestSpatialFunctions.java hibernate-spatial/src/test/java/org/hibernate/spatial/testing/SpatialFunctionalTestCase.java hibernate-spatial/src/test/java/org/hibernate/spatial/testing/TestSupportFactories.java hibernate-spatial/src/test/java/org/hibernate/spatial/testing/dialects/h2geodb/GeoDBExpectationsFactory.java hibernate-spatial/src/test/java/org/hibernate/spatial/testing/dialects/mysql/MySQLExpectationsFactory.java hibernate-spatial/src/test/java/org/hibernate/spatial/testing/dialects/oracle/SDOGeometryExpectationsFactory.java hibernate-spatial/src/test/resources/hibernate.properties
2013-08-16 13:46:28 -04:00
testCompile(libraries.junit)
testCompile(project(':hibernate-testing'))
testCompile([group: 'commons-dbcp', name: 'commons-dbcp', version: '1.4'])
// testCompile([group: 'com.oracle.jdbc', name: 'ojdbc6', version: '11.1.0.7.0'])
// testRuntime([group: 'com.microsoft', name: 'sqljdbc', version: '2.0'])
2015-11-30 04:04:09 -05:00
// testRuntime("org.opengeo:geodb:0.7")
// testRuntime("mysql:mysql-connector-java:5.1.15")
// testRuntime("org.postgresql:postgresql:9.4-1204-jdbc42")
// testRuntime("org.postgis:postgis-jdbc:1.1.6")
testCompile(libraries.validation)
testCompile(libraries.jandex)
testCompile(libraries.classmate)
testCompile(libraries.validator) {
// for test runtime
transitive = true
}
testRuntime( libraries.expression_language_api )
testRuntime( libraries.expression_language_impl )
testRuntime('jaxen:jaxen:1.1')
testRuntime(libraries.javassist)
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 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' )
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
sourceSets.test.resources {
setSrcDirs(['src/test/java', 'src/test/resources'])
}