Model finalization

Migrating a project from version 2.0 to 2.1, I encounter this error:

* What went wrong:
A problem occurred evaluating root project 'source'.
> Failed to apply plugin [id 'maven-publish']
   > model 'tasks' is finalized

How can I tell which operation performs this finalization of ‘tasks’?

Can you provide the stacktrace please.

Here you go, sir -

Hey Noam,

This is fixed for 2.2 which goes RC soon. You could use a nightly in the meantime if you need to.