Looked around for this solution for much too long now, and I\'m not sure if I missed it or just misstyped something, but my Gradle script will not compile. I am migrating to
It should be exclude module: 'net.milkbowl:vault:1.2.27'
(add module:
) as explained in documentation for DependencyHandler
linked from http://www.gradle.org/docs/current/javadoc/org/gradle/api/Project.html#dependencies(groovy.lang.Closure) because ModuleDependency.exclude(java.util.Map)
method is used.
In my case, all the compile
statements has somehow arranged in a single line. separating them in individual lines has fixed the issue.