Apply the database configuration testing to the documentation module
This commit is contained in:
parent
c62c367957
commit
9608b3904a
|
@ -1,3 +1,4 @@
|
||||||
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
import org.asciidoctor.gradle.AsciidoctorTask
|
import org.asciidoctor.gradle.AsciidoctorTask
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
@ -69,8 +70,27 @@ dependencies {
|
||||||
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
||||||
|
|
||||||
testRuntime( libraries.h2 )
|
testRuntime( libraries.h2 )
|
||||||
|
testRuntime( libraries.hsqldb )
|
||||||
|
testRuntime( libraries.postgresql )
|
||||||
|
testRuntime( libraries.mysql )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processTestResources.doLast( {
|
||||||
|
copy {
|
||||||
|
from( sourceSets.test.java.srcDirs ) {
|
||||||
|
include '**/*.properties'
|
||||||
|
include '**/*.xml'
|
||||||
|
}
|
||||||
|
into sourceSets.test.output.classesDir
|
||||||
|
}
|
||||||
|
copy {
|
||||||
|
ext.targetDir = file( "${buildDir}/resources/test" )
|
||||||
|
from file('src/test/resources')
|
||||||
|
into targetDir
|
||||||
|
filter( ReplaceTokens, tokens: dbBundle[db] );
|
||||||
|
}
|
||||||
|
} )
|
||||||
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
// grouping tasks - declaration, see below for task dependency definitions
|
// grouping tasks - declaration, see below for task dependency definitions
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
# See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
# See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||||
#
|
#
|
||||||
|
|
||||||
hibernate.dialect org.hibernate.dialect.H2Dialect
|
hibernate.dialect @db.dialect@
|
||||||
hibernate.connection.driver_class org.h2.Driver
|
hibernate.connection.driver_class @jdbc.driver@
|
||||||
hibernate.connection.url jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;LOCK_TIMEOUT=10000
|
hibernate.connection.url @jdbc.url@
|
||||||
hibernate.connection.username sa
|
hibernate.connection.username @jdbc.user@
|
||||||
|
hibernate.connection.password @jdbc.pass@
|
||||||
|
|
||||||
hibernate.connection.pool_size 5
|
hibernate.connection.pool_size 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue