Marked groovy dirs as source & test-source dirs

Also moved out dependencies into dependencyManagement.