.gradle folder in project

You can get a rough idea, by running gradle model, finding your task and then by looking at its namespace and the name of its creator.

However compile is not a task, it is a configuration which is added by JavaBasePlugin.