approach similar to gradle-grunt-plugin