Class JsonParser
java.lang.Object
io.github.joke.conventionalversion.config.JsonParser
Parses one of
release-please's files into a JsonObject.
The parser is Groovy's, which every Gradle distribution ships in its own lib directory.
Reading JSON therefore costs the consuming build nothing: the classes are already on the runtime
executing the build, the plugin declares no dependency for them, and its published metadata still
declares none. A bundled parser would have had to be relocated into the jar and excluded from
mutation testing, and a hand-written one would have been the most expensive code here to cover.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected groovy.json.JsonSlurpersourcenames the file, so a failure says which one could not be read.protected Object
-
Constructor Details
-
JsonParser
public JsonParser()
-
-
Method Details
-
parse
sourcenames the file, so a failure says which one could not be read. -
slurp
-
newSlurper
@VisibleForTesting protected groovy.json.JsonSlurper newSlurper() -
root
-