Adding a plugin with dependencies of a specific maven repository

Nearly correct.

You want project.repositories.add(...) in your apply method.

Cheers,
Eric