The build script is mixing up buildscript
dependencies (i.e.
- dependencies of the build itself; typically this means Gradle plugins
- with regular dependencies (i.e. dependencies of the code to be compiled/run).
2 needs to go into dependencies { ... }
, not into buildscript { dependencies { ... } }
.
Everything but the classpath
dependencies are regular dependencies.