diff --git a/src/main/groovy/com/marklogic/gradle/task/databases/ClearModulesDatabaseTask.groovy b/src/main/groovy/com/marklogic/gradle/task/databases/ClearModulesDatabaseTask.groovy index d697ea785..b8163d70f 100644 --- a/src/main/groovy/com/marklogic/gradle/task/databases/ClearModulesDatabaseTask.groovy +++ b/src/main/groovy/com/marklogic/gradle/task/databases/ClearModulesDatabaseTask.groovy @@ -17,7 +17,7 @@ class ClearModulesDatabaseTask extends MarkLogicTask { if (command != null) { command.execute(getCommandContext()) } else { - new DatabaseManager(context.getManageClient()).clearDatabase(getAppConfig().getModulesDatabaseName()); + new DatabaseManager(getManageClient()).clearDatabase(getAppConfig().getModulesDatabaseName()); } } }