Installing
Add the BOM for the version, the umbrella artifact for the toolkit, and one natives jar per platform you run on.
Every artifact is published under the group dev.goldberry. Versions are
calendar versions: 2026.1, 2026.2, 2026.2.1.
Note
The coordinates below are for Goldberry
2026.3. Development builds are available from the snapshot repository.
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation platform('dev.goldberry:goldberry-bom:2026.3')
implementation 'dev.goldberry:goldberry' // common, natives, core and widgets
// The native library, one classifier per platform you run on.
runtimeOnly 'dev.goldberry:goldberry-natives::linux-x64'
runtimeOnly 'dev.goldberry:goldberry-natives::linux-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::macos-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::windows-x64'
}
Maven
<dependencyManagement>
<dependencies>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry-bom</artifactId>
<version>2026.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry</artifactId>
</dependency>
<dependency>
<groupId>dev.goldberry</groupId>
<artifactId>goldberry-natives</artifactId>
<classifier>linux-x64</classifier>
<scope>runtime</scope>
</dependency>
</dependencies>
Snapshots
Every push to master publishes a -SNAPSHOT of the next version, the
goldberryVersion in
gradle.properties,
to the Central Portal’s snapshot repository. To follow master, add the
repository and use that version with -SNAPSHOT:
repositories {
mavenCentral()
maven { url = 'https://central.sonatype.com/repository/maven-snapshots/' }
}
Which natives jars to add
The BOM knows versions and not platforms. A POM has no notion of an operating system, so the umbrella depends on the bindings jar without a classifier and the platform jars are yours to add.
Add all four. NativeLibrary picks the right one at run time from
os.name and os.arch, so the application runs on every machine it is built
or run on. The one-platform form is the one that goes wrong quietly, on a
developer building on macOS for an application that ships to Linux.
| Classifier | Platform |
|---|---|
linux-x64 | Linux, x86-64, glibc 2.28 or newer |
linux-aarch64 | Linux, 64-bit ARM |
macos-aarch64 | macOS on Apple silicon |
windows-x64 | Windows, x86-64 |
Optional modules
Use modules and classifiers from the same release or snapshot. For
goldberry-media or goldberry-vector, add a natives-<target> classifier
for each platform you support. Upgrade notes
| Artifact | Adds | Chapter |
|---|---|---|
goldberry-html | markdown-view and html-view | Markdown, HTML and the web |
goldberry-emoji | the Noto Color Emoji face, drawn from its paint graphs | Text, fonts and icons |
goldberry-gpu | GPU composition for every window, and canvas3d | The GPU canvas |
goldberry-media | media-player, video-view and audio-player, plus natives-<target> classifier jars for each platform | Audio and video |
goldberry-vector | SVG images and svg-view, plus a natives-<target> classifier | Drawing |
goldberry-camera | Camera capture and camera-view | Camera |
goldberry-mic | Microphone capture, level, waveform and spectrum | Microphone |
goldberry-spell | Optional spelling engine. Supply a dictionary for each language | Spell checking |
implementation 'dev.goldberry:goldberry-html'
implementation 'dev.goldberry:goldberry-media'
runtimeOnly 'dev.goldberry:goldberry-media::natives-linux-x64'
Logging
The toolkit logs through SLF4J and binds no implementation. Add one and the toolkit’s diagnostics appear. Add none and you get silence, SLF4J’s own no-provider warning included.
runtimeOnly 'ch.qos.logback:logback-classic:1.6.5'
The module path
Goldberry’s modules are named: dev.goldberry.core, dev.goldberry.widgets,
dev.goldberry.natives, and dev.goldberry.html, dev.goldberry.emoji,
dev.goldberry.media and dev.goldberry.gpu for the optional ones. An
application on the module path requires the two it uses and opens the
packages the toolkit reads at run time:
module com.example.app {
requires dev.goldberry.core;
requires dev.goldberry.widgets;
// The reflective binder reads @Bind fields here, and the parser reads the
// .kdl and .css resources beside them.
opens com.example.app to dev.goldberry.core;
}
Native access is granted to the one module that touches native code:
java --enable-native-access=dev.goldberry.natives --module-path lib --module com.example.app/com.example.app.Hello
The opens is for what the toolkit reads itself: markup, a
Stylesheet.resource, a FontSource.resource. A resource directory is a
package of its own, so fonts/ beside the class is com.example.app.fonts,
and that is the package to open. The stream forms,
FontSource.stream(…, () -> Hello.class.getResourceAsStream("fonts/Forum.ttf"))
and Stylesheet.stream(…), read the file with your own code and need no
opens at all (Text, fonts and icons).
The natives jars are modules too, one per platform:
dev.goldberry.natives.linux_x64, dev.goldberry.natives.linux_aarch64,
dev.goldberry.natives.macos_aarch64 and dev.goldberry.natives.windows_x64.
They stay on the module path beside everything else. Nothing has to require
them: the library is found there by name.
An application on the class path needs no opens and grants
--enable-native-access=ALL-UNNAMED instead.