I want to use gradle plugin having this syntax
plugins {
id \"id\" version \"version\"
}
but i have the error of
only bu
Whenever you write a build.gradle
script and use the new plugins
script block, you need to put it as first block in the file. The only exceptions from this rule are other plugins
blocks or the special buildScript
block, which always must go first.
As an example, this script is fine:
plugins {
// ...
}
dependencies {
// ...
}
This one is also fine:
buildScript {
// ...
}
plugins {
// ...
}
repositories {
// ...
}
But this one is invalid:
repositories {
// ...
}
plugins {
// ...
}