Avoid generating empty collections/maps in plugin description files

This commit is contained in:
Minecrell 2018-07-24 15:56:38 +02:00
parent 0db65c712f
commit 9f4b8d012e

View file

@ -56,7 +56,7 @@ open class GeneratePluginDescription : DefaultTask() {
val mapper = ObjectMapper(factory)
.registerKotlinModule()
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
.setSerializationInclusion(JsonInclude.Include.NON_EMPTY)
mapper.writeValue(outputFile, pluginDescription)
}