mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 16:25:06 +00:00
Avoid generating empty collections/maps in plugin description files
This commit is contained in:
parent
0db65c712f
commit
9f4b8d012e
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ open class GeneratePluginDescription : DefaultTask() {
|
||||||
|
|
||||||
val mapper = ObjectMapper(factory)
|
val mapper = ObjectMapper(factory)
|
||||||
.registerKotlinModule()
|
.registerKotlinModule()
|
||||||
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
|
.setSerializationInclusion(JsonInclude.Include.NON_EMPTY)
|
||||||
|
|
||||||
mapper.writeValue(outputFile, pluginDescription)
|
mapper.writeValue(outputFile, pluginDescription)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue