Remove gradle build dependency on copyMainDeps