Sunday, July 26, 2015

only buildscript {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed

You might encounter the following error:

only buildscript {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed

Just do the instruction in the error message.

In order words, move `plugin {}` script block on top of the script

except `buildscript {}` and other `plugins {}` script blocks.

2 comments:

  1. It isn't a silver bullet... Do you consider more complex situations where we have a repositories inside a buildscript?

    ReplyDelete