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 b36803cecf
commit 68acb2edfa
1 changed files with 4 additions and 8 deletions

View File

@ -299,16 +299,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