Add pre-commit hook.

Issue #SPCRP-11 In Progress
Issue #SPCRP-11 work 1h Add pre-commit hook which runs the 'gradle all' task.