modifications to build.gradle for check task