These are the parts for a gradle project designed to mimic the gradle-verticle example. In order to see the issue you need to use the JS script to load data into the test db in mongo via mongo setup.js
. Then when you build and run the fat jar you should see the following output:
Result is a LinkedHashMap
Object is a JsonObject
List is a JsonArray
The issue is the nested object and array, which aren't in a form that Groovy can handle natively.
there is an missing quote in setup.js for { "key": "value" }