S
S
SashaFarkas2019-01-25 18:50:14
IntelliJ IDEA
SashaFarkas, 2019-01-25 18:50:14

Why does including the Groovy library provoke an error in Gradle?

I get the error "'dependencies' cannot be applied to '(groovy.lang.Closure)'" after I include the Groovy library. It doesn't matter, through gradle or through jar manually.
5c4b3077ec8b7444051574.png
(If you remove compile and testCompile, everything works fine, and no errors appear)
In addition, gradle also does not allow you to build the project
5c4b2fe3431cc294796896.png
Please tell me what I'm doing wrong.
IDE - Intellij IDEA 2018.2
Gradle - 5.1.1
JDK - 11.0.1

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question