diff --git a/build.gradle b/build.gradle index 41e16693b9..4d4059b5c6 100644 --- a/build.gradle +++ b/build.gradle @@ -384,7 +384,7 @@ task loadTenant(group: ofbizServer, description: 'Load data using tenantId') { executeLoadTenant.args "component=${tenantComponent}" } - doLast { + executeLoadTenant.doFirst { if(!project.hasProperty('tenantId')) { throw new GradleException('Missing project property tenantId') }