HHH-14199 fix the error when running 'setDataBase' gradle task

This commit is contained in:
Andrea Boriero 2020-09-01 10:31:22 +01:00
parent 517a0b9639
commit f07c26339b
1 changed files with 4 additions and 8 deletions

View File

@ -303,16 +303,12 @@ task copyResourcesToIntelliJOutFolder {
Afterward, you can run any test from the IDE against that particular DB.
*/
task setDataBase {
inputs.property( "db", db )
doLast {
processTestResources
copyResourcesToIntelliJOutFolder
println( 'Setting current database to ' + db )
}
task setDataBase dependsOn( processTestResources, copyResourcesToIntelliJOutFolder ) {
println( 'Setting current database to ' + db )
}
copyResourcesToIntelliJOutFolder.mustRunAfter processTestResources
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Report configs