Nucleus

Modules

Every Nucleus module by platform and category, what nucleus-application brings, and what each module needs.

View as Markdown

Nucleus modules release together under the dev.nucleusframework group. nucleus-application brings the entry point, windows and runtime essentials. Add any other module when your app needs it, on the same version:

build.gradle.kts
val nucleusVersion = "<version>"

dependencies {
    implementation(compose.desktop.currentOs)
    implementation("dev.nucleusframework:nucleus.nucleus-application:$nucleusVersion")
    implementation("dev.nucleusframework:nucleus.notification-common:$nucleusVersion")
    implementation("dev.nucleusframework:nucleus.global-hotkey:$nucleusVersion")
}

What nucleus-application brings

Windows, dialogs, popups and native content, window themes and icons, platform detection, NucleusApp metadata, single instance, deep links, the AOT cache, isSystemInDarkMode(), and spell check. The native macOS context menu, Modifier.keepScreenOn() and native image support also come with it.

Changed in 3.0

nucleus-application exposes window-runtime, so remove your own window-runtime dependency. The decorated-window-* modules are now window-*: decorated-window-tao is window-runtime, and -core, -jewel, -material2 and -material3 keep their suffix. Kotlin packages are unchanged. decorated-window-awt, decorated-window-jbr and decorated-window-jni no longer exist. See Migrate from 2.x.

Toolkit modules

window-jewel (Java 25), window-material2 and window-material3 style windows and dialogs inside nucleusApplication. See Toolkits. They need window-runtime, which nucleus-application brings, and work without the Gradle plugin.

Read the requirements

Each module below shows what it needs besides its own dependency. For a multiplatform module, both requirements concern its desktop builds only: on Android, iOS and the web it needs neither the Gradle plugin nor window-runtime.

  • Gradle plugin: Required means the module only works in an app the Nucleus Gradle plugin builds and packages. Recommended means it runs without the plugin, but part of it relies on what the plugin injects, such as the app id, the Windows AUMID or Info.plist keys. The module's page says what.
  • Window runtime: Required means the module needs window-runtime, which nucleus-application brings. No means it also works in a plain Compose Desktop or JVM app.

nucleus-application itself works without the plugin, but its single-instance lock and app identity come from the packaged build.

native-http, native-http-okhttp and native-http-ktor bring native-ssl with them.

Find a module

Filter by the platform you target, then open a page for its dependency line, a working example and its limits.

55 module pages

What's next

Was this page helpful?
Edit on GitHub

Last updated on