Revert "Disables some gradle code to work as a submodule."

This reverts commit 8646cb01ab54b7f516fd9cea2b1e99e4c920499b.