Repository navigation
fix(deps): update dependency org.tomlj:tomlj to v2 - #156
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-tomlj.version
branch
from
September 30, 2026 02:43
170a89c to
ab65854
Compare
renovate
Bot
force-pushed
the
renovate/major-tomlj.version
branch
from
October 4, 2026 00:27
ab65854 to
c29fc84
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.0→2.2.0Release Notes
tomlj/tomlj (org.tomlj:tomlj)
v2.2.0Compare Source
TomlJ is a parser and serializer for Tom's Obvious, Minimal Language (TOML).
Changes since last release
TomlParseOptions.sourceless()is shorthand forTomlParseOptions.defaults().withoutSource(), the options for a document that is read but not written back.Getting TomlJ
TomlJ is published to Maven Central.
To include using Gradle, add the following to your dependencies:
implementation 'org.tomlj:tomlj:2.2.0'To include using Maven:
If your project already uses ANTLR and you would rather share one copy of the runtime, use
org.tomlj:tomlj-antlr:2.2.0instead.You may also download the jars directly and include them in your project.
Usage and Documentation
For basic usage, please see the README. The examples directory has twelve small programs using TomlJ, from reading a file and reporting its errors to editing and writing documents, reading their comments, and binding them to records. Complete documentation, in Javadoc, is available here: http://tomlj.org/docs/java/2.2.0/
Signature
All artifacts and release tags are signed by Chris Leishman, using key id 0xB5A9E81B565E89E0.
v2.1.1Compare Source
TomlJ is a parser and serializer for Tom's Obvious, Minimal Language (TOML).
2.1.1 is a bug-fix release.
Changes since last release
floattoo small to hold a value is reported as out of range, a sorted set of a type that is notComparablegives a clear error, and aGenericTypesubclass of another generic class names the right type.Getting TomlJ
TomlJ is published to Maven Central.
To include using Gradle, add the following to your dependencies:
implementation 'org.tomlj:tomlj:2.1.1'To include using Maven:
If your project already uses ANTLR and you would rather share one copy of the runtime, use
org.tomlj:tomlj-antlr:2.1.1instead.You may also download the jars directly and include them in your project.
Usage and Documentation
For basic usage, please see the README. The examples directory has twelve small programs using TomlJ, from reading a file and reporting its errors to editing and writing documents, reading their comments, and binding them to records. Complete documentation, in Javadoc, is available here: http://tomlj.org/docs/java/2.1.1/
Signature
All artifacts and release tags are signed by Chris Leishman, using key id 0xB5A9E81B565E89E0.
v2.1.0Compare Source
TomlJ is a parser and serializer for Tom's Obvious, Minimal Language (TOML).
2.1.0 adds binding between TOML documents and Java objects, in both directions, and three options for the default writing style.
Changes since last release
Binding to Java objects
TomlTable.asandTomlArray.asbind a table or an array to a Java record, class, collection, map or array, given as aClassor, for a generic type, aGenericType. Each value is converted to the type declared for it.Toml.parseAsparses a string or a file and binds it in one call; a document with parse errors throwsTomlParseExceptionand is not bound.TomlBindOptions.withKeyNaming, or to the key given by@TomlName, which also names enum constants.Optionalempty and a field of a class at its initial value, and is otherwisenull, or an error for a primitive, a component or field annotatedNonNull, or one in a JSpecify@NullMarkedscope. A key that names nothing is an error unlesswithUnknownKeysIgnored(true).TomlBindException, eachTomlBindErrorwith its path, position and the exception that caused it, if any.withConverterbinds other types, such asDuration.Writing Java objects
MutableTomlTable.fromandMutableTomlArray.fromwrite an object as a new table or array, andToml.toTomlwrites it as a document.updatewrites an object into an existing document and changes only what differs. A value that binds to the new one, or writes the same, is left as it was written; a replaced string or integer keeps its notation where the new value allows it; an array keeps the elements it already holds, with their comments.TomlValue.inNotationOfgives a value in the notation of the value it replaces, for use with the editing API.withConverter(type, read, write)also writes a converted type.Writing options
TomlWriteOptions.withEntriesAlignedWithHeaders(true)indents a table's entries like its header, instead of one level beyond it.withSpaceInsideArrays(true)writes an array that fits on one line with a space inside each bracket,[ 8001, 8002 ], matching the spacing of an inline table.withBlankLineBetweenNestedHeaders(false)writes a header that directly follows the header of a table containing it on the next line, with no blank line between them.Fixes
TomlPositionis nowSerializable, so aTomlParseErrorcan be serialized; it threwNotSerializableException.Getting TomlJ
TomlJ is published to Maven Central.
To include using Gradle, add the following to your dependencies:
implementation 'org.tomlj:tomlj:2.1.0'To include using Maven:
If your project already uses ANTLR and you would rather share one copy of the runtime, use
org.tomlj:tomlj-antlr:2.1.0instead.You may also download the jars directly and include them in your project.
Usage and Documentation
For basic usage, please see the README. The examples directory has twelve small programs using TomlJ, from reading a file and reporting its errors to editing and writing documents, reading their comments, and binding them to records. Complete documentation, in Javadoc, is available here: http://tomlj.org/docs/java/2.1.0/
Signature
All artifacts and release tags are signed by Chris Leishman, using key id 0xB5A9E81B565E89E0.
v2.0.1Compare Source
TomlJ is a parser and serializer for Tom's Obvious, Minimal Language (TOML).
The 2.x line adds:
toToml()writes a document identical to the parsed source except where it was edited: comments, blank lines, key order, indentation and the notation of each value (0xFF,'literal',{ a = 1 }) stay as they were written. A document can also be written in a default style, for TOML 1.1.0 or 1.0.0.org.tomlj:tomljcarries its own relocated copy of the ANTLR runtime, andorg.tomlj:tomlj-antlris the same library for projects that already use ANTLR.It is a major version because it removes TOML 0.4.0 and 0.5.0 support and changes what
org.tomlj:tomljcontains; see the note for existing users below.Changes since last release
Comments
comments(key)orcomments(index). Every other comment is unattached and belongs to the table or array it was written in.elements()onTomlTableandTomlArraywalks the entries and unattached comments in the order they were written.entry(key)andentry(index)return one entry, as aTomlKeyValueorTomlEntry, with its value, comments and position.Building and editing documents
MutableTomlTableandMutableTomlArrayadd setters, removal and insertion toTomlTableandTomlArray. A table or array is built withcreate(), and the result ofToml.parseis itself aMutableTomlTable, so a document can be parsed, changed and written out again.setandaddput a new entry after the last element;insertBeforeandinsertAfterplace one next to an existing entry or comment. Inserting a key that is already set throws the newTomlKeyAlreadySetException.TomlValue.parsereads one value from its TOML text, andTomlValue.hex,octal,binary,grouped,literalandmultilineLiteralmake a value written in a chosen notation.createInline()makes a table or array written inline on its entry's line.Writing TOML
toToml()on a parse result copies the text the document was parsed from, so an unedited document comes back byte for byte, and an edit changes only the lines it touches.TomlWriteOptionssets how much is kept withkeep(Keep):LAYOUT(the default) keeps every line, blank line and comment as written;NOTATIONkeeps the form each key, value and table was written in, such as0xFFor'literal', and lays out the lines in the default style;NOTHINGwrites the whole document in the default style.withMaxLineWidth, and indents withwithIndent.withVersionnames the TOML version written for. Writing for 1.0.0 throwsIllegalArgumentExceptionwhere the document needs a construct only 1.1.0 allows, naming the construct and where it was written.TomlParseOptions.defaults().withoutSource()parses without it.Fixes
keyPathSet,dottedKeySetandtoMap()list keys in document order, askeySetand the entry sets already did, where they listed them in hash order.toJsonwrites NaN and infinity asnull, since JSON has no literal for them. It wrotenan,+infand-inf, which is not JSON. WithALL_VALUES_AS_STRINGSthey are still written as the strings"nan","+inf"and"-inf".foo = [1, @]reports "Unexpected '@', expected ], a value, or a newline".checker-qualon the classpath made javac warn about an unknown enum constantTypeUseLocation, which failed builds using-Werror. The annotations that caused it are gone.Note for existing users
org.tomlj:tomljis now a single jar with no dependencies: it carries its own copy of the ANTLR runtime, relocated underorg.tomlj.internal.antlr. Theallclassifier is gone. A project that relied on TomlJ to bringantlr4-runtimeonto its classpath now needs to declare it, or use the neworg.tomlj:tomlj-antlr, which is the same library depending onantlr4-runtimeinstead of bundling it.TomlVersion.V0_4_0andV0_5_0are removed. Every document that parsed under them parses identically atV1_0_0.TomlArray.containsStrings()and the nine methods like it are removed.get,inputPositionOfandcommentsthrowTomlInvalidTypeExceptionwhen a key on the path before the last is not a table, as documented, where they returnednull.toToml()output changes: a parsed document is written as its source text, and comments are written.TomlTableandTomlArraygain abstract methods (entryandelements), so a class implementing either needs to supply them.Getting TomlJ
TomlJ is published to Maven Central.
To include using Gradle, add the following to your dependencies:
implementation 'org.tomlj:tomlj:2.0.1'To include using Maven:
If your project already uses ANTLR and you would rather share one copy of the runtime, use
org.tomlj:tomlj-antlr:2.0.1instead.You may also download the jars directly and include them in your project.
Usage and Documentation
For basic usage, please see the README. The examples directory has seven small programs using TomlJ, from reading a file and reporting its errors to editing and writing documents and reading their comments. Complete documentation, in Javadoc, is available here: http://tomlj.org/docs/java/2.0.1/
Signature
All artifacts and release tags are signed by Chris Leishman, using key id 0xB5A9E81B565E89E0.
v2.0.0Compare Source
v1.3.1Compare Source
TomlJ is a parser for Tom's Obvious, Minimal Language (TOML).
1.3.1 is a bug-fix release for the 1.x line.
Changes since last release
Getting TomlJ
TomlJ is published to Maven Central.
To include using Gradle, add the following to your dependencies:
implementation 'org.tomlj:tomlj:1.3.1'To include using Maven:
You may also download the jars directly and include them in your project.
Usage and Documentation
For basic usage, please see the README. Complete documentation, in Javadoc, is available here: http://tomlj.org/docs/java/1.3.1/
Signature
All artifacts and release tags are signed by Chris Leishman, using key id 0xB5A9E81B565E89E0.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.