Changelog 2.x
Release notes for Nucleus 2.0.0 to 2.5.18, newest first.
Release notes for Nucleus 2.0.0 to 2.5.18, newest first. Nucleus 3.0 is in the current changelog.
v2.5.18
Released: 2026-09-23
Bug fixes
- Linux natives require glibc 2.39 (#699) — the Linux JNI libraries (Tao, decorated
window, notifications, tray helpers, …) were built on
ubuntu-latest, which GitHub moved to Ubuntu 24.04, so every published.soneeded glibc 2.39 and failed to load on still-supported distributions such as Ubuntu 22.04 LTS (2.35), Debian 12, and Devuan 5 (2.36). The native build is now pinned toubuntu-22.04/ubuntu-22.04-arm, bringing the floor back to glibc 2.35. See Native library fails to load on an older Linux distribution.
v2.5.17
Released: 2026-09-22
New features
- Pacman upgrade hooks (#685) —
linux { }gainsafterUpgradeandbeforeUpgradefile properties, passed raw to fpm (--after-upgrade/--before-upgrade). On Pacman, an upgrade runs onlypre_upgrade/post_upgrade: none of the four install/remove scripts fire, so a service set up inafterInstalldied on the first upgrade. Register or restart it inafterUpgradetoo. Deb and Rpm ignore both properties — their install scriptlets already run on upgrades. See Add install and remove scripts.
Bug fixes
- Linux install directory no longer contains spaces (#685) — Deb, Rpm, and Pacman
installed the payload under
/opt/${sanitizedProductName}, derived fromappName. electron-builder's sanitizer keeps spaces, so a display name such asMy Appbroke every unquoted path in install scripts and systemdExecStart=lines. On Linux the product name now comes fromlinux.packageName ?: packageName, so the payload lands in/opt/<packageName>. Scripts that hardcode the old/opt/<App Name>path must be updated. - Developer ID signing of GraalVM macOS bundles (#692) —
packageGraalvmDmgwithcompose.desktop.mac.sign=trueaborted withcode object is not signed at allonContents/MacOS/.nucleus-executable-type, and even a manually fixed bundle was rejected by Gatekeeper after notarization. Three fixes: the executable-type marker is written toContents/Resources/(the runtime still reads the old location); every dylib and executable underContents/MacOS/is re-signed with the Developer ID identity; andfontconfig.bfcmoves fromContents/MacOS/lib/toContents/Resources/, withsun.awt.fontconfigpointed at it at startup. JVM (jpackage) bundles are unaffected. See Notarization fails: "code object is not signed at all".
v2.5.16
Released: 2026-09-17
New features
- Linux install and remove scripts (#664) —
linux { }now takesafterInstall,afterRemove,beforeInstall, andbeforeRemovefile properties. User after-scripts are concatenated after Nucleus's own template (desktop integration, AppArmor, optional polkit silent-update helper) and run through electron-builder for Deb, Rpm, and Pacman; before-scripts are passed raw to fpm (--before-install/--before-remove). GraalVM native-image packages honor the same four properties. electron-builder substitutes${sanitizedProductName}/${executable}only in single-quoted tokens; a double-quoted"${executable}"is left literal, so a systemdsystemctl enable "${executable}.service"line silently no-ops. Pacmanpre_removedoes not get deb-style$1=upgrade— stop and disable the unit unconditionally and re-enable it inafterInstall. See Add install and remove scripts. - Headless GraalVM images (#665) —
graalvm { headless = true }skips L3 AWT/Java2D platform metadata, the always-on L1 GUI packs (jdk-awt,jdk-fonts,jdk-graphics2d, Skiko/Compose/tray), and the companion GUI native libs (libawt,libfontmanager, Skiko, …), and bakes-Djava.awt.headless=true. Default isfalse(GUI). Without this, JNI registration of AWT types makesnative-imagepulllibawt/libawt_xawteven when app code never referencesjava.awt. Use it for daemons and CLIs. See Build a headless image.
Bug fixes
- Linux EGL crash on GPUs without GL 3.3 compatibility (#670) — the X11 and Wayland
attach paths asked for one thing only: a GL 3.3 compatibility-profile context. Mesa's
r600 driver on AMD RV610 caps the compat profile at 3.0 (core reaches 3.3), so the
request failed and the app aborted. Attach now tries 3.3 compat, then 3.3 core
(hardware-accelerated on that GPU), then Mesa llvmpipe via
LIBGL_ALWAYS_SOFTWARE=1(Mesa reads that variable ateglInitialize, so the display is terminated and attach re-enters once). Existing hardware that accepts the compat request is untouched. Both fallbacks log one line on stderr. See Crash on launch with an older Linux GPU.
v2.5.15
Released: 2026-09-07
New features
- Trackpad pan events on macOS (#654) — two-finger trackpad gestures arrived as ordinary
Compose
Scrollevents, indistinguishable from wheel notches, so a map could not bind panning to the trackpad and zoom to the wheel. Phased AppKit scroll steps now becomePointerEventType.PanStart/PanMove/PanEndwithpanOffsetin pixels (AWTpreciseWheelRotation× 10.dp). Wheel notches and phase-less precise scrolls stayScroll. The pan stays open across AppKit's momentum tail so Compose does not stack its own fling.Modifier.scrollablehandles both; a custompointerInputthat only listens forScrollmust also handle Pan, or start the process with-Dnucleus.tao.trackpadPanEvents=falseto get AWT-styleScrollfor everything. Native views consume the pan and forward it so the embedded scroll view rubber-bands; popups share the same router. See Read trackpad pans from Compose.
Bug fixes
- Horizontal trackpad scroll reversed on macOS (#652) — tao negated
scrollingDeltaXin the macOSscroll_wheelhandler, then Nucleus negated both axes assuming raw AppKit deltas, so a two-finger swipe left panned the wrong way relative to AWT. AppKit already follows theMouseScrollDeltaconvention (as winit does); the extra X negation is gone, and popup conversion flips both axes without a second guess. See Read trackpad pans from Compose. - Trackpad scroll magnitude included display scale (#653) — Tao converted AppKit logical
deltas to physical pixels before dividing by 10, so a 10-point swipe moved twice as far on a
2× display as under AWT (which uses
scrollingDelta * 0.1with no scale). Precise deltas are now handed over in logical points. See How it works.
v2.5.14
Released: 2026-09-04
Bug fixes
- Window content reclassified by a non-UI composable (#636) — the window and dialog
openers had their composition target inferred, so a single unmarked factory called in the
nucleusApplicationblock (the Compose compiler bakes@ComposableTargetonto any unmarked function that forwards a target-marked content lambda) reclassified the whole scope — nested windows included — and every@UiComposablecall in it warned, which is fatal under-Werror. The reported case was MapLibre Compose'srememberMapState. Each opener is now@ComposableOpenTarget(-1)with a@UiComposablecontent lambda, matching Compose Desktop'sWindow/Dialog: callable from any applier, always composing UI in the new window's own composition. CoversDecoratedWindow/DecoratedDialog,NucleusWindowHost/NucleusDialogHost,HostedWindow/HostedDialog, and Tao'sDecoratedWindow,DecoratedDialog, andTaoStandalonePopup. The Material/Jewel wrappers inherit the same scheme through inference. See Notes.
v2.5.13
Released: 2026-09-04
Bug fixes
- Windows freeze on IME commit and taskbar restart (#644) — two more instances of the
#640 lock class: the window-state lock was held across
ImeHandler::process_message, which peeks the queue onWM_IME_ENDCOMPOSITION(the Korean IME sends the committed string after the end message, so the queue decides whether to defer), and acrossset_skip_taskbaronTaskbarCreated, where theCoCreateInstance+ITaskbarListSTA call pumps the queue while it waits. Both re-entered the window procedure and re-locked a non-reentrant mutex, parking the event-loop thread inWaitOnAddressfor good. The IME commit-pending flag is now computed before the lock is taken and passed in, and the skip-taskbar flag is read out before the COM call. Wider blast radius than #640: nearly every IME arm took that lock. Ported from tauri-apps/tao#1215 and #1264. See Text input. - Windows freeze on a keyboard-triggered nested message (#640) —
PeekMessageWdelivers pending cross-thread sent messages inline, re-entering the window procedure before the peek returns. The keyboard callback held the globalKEY_EVENT_BUILDERSmap and the key-press/release arms heldLAYOUT_CACHEacross such a peek, so the nested dispatch deadlocked the event-loop thread against itself and the window stayed "Not Responding". Reported as a freeze when moving a window between Windows 11 virtual desktops. The builder is now taken out of the map for the duration and put back only if the slot still exists, and the layout-cache guard ends before the peek. Only injected or sent key messages can nest here, and they are now dropped instead of hanging the process.
v2.5.12
Released: 2026-09-01
Bug fixes
alwaysOnTopdropped on Windows (#631) — three layers lostWS_EX_TOPMOST:DecoratedWindowComposablecreated every window with a hardcodedalwaysOnTop = falseand applied the real value from a laterLaunchedEffect, losing the race against creation-time style rewrites (acrylic, skip-taskbar); tao only issues its z-orderSetWindowPoson aWindowFlagscache diff, and asynchronously, so an external rewrite that dropped the topmost band was never repaired. The initial value is now passed at window creation,setAlwaysOnTopalso applies the z-order synchronously, and the band is re-asserted after the known clobber sites — every resize, and the backdrop apply, teardown, and survivor-restore paths. See Platform behavior.- Input starving with two windows open on Windows (#632) — any snapshot write in the
process wakes every scene's
Recomposerthrough the global apply observer, and the Windows host rendered and presented those frames unconditionally. EacheglSwapBuffersat interval 1 parks the shared event-loop thread until the next VBlank, so every visible window re-presented at the animating window's rate and the VBlank waits serialized (a dashboard lagging while a small always-on-top window was visible). The scene bundle now tracks a visual-dirty flag fed by itsinvalidateLayout/invalidateDrawcallbacks and the host skips the present for a frame with no visual change. Presents that must swap regardless are kept: a size or scale apply, the OS modal resize/move loop, a resolved clear-colour change, and the first swap aftershow(). See How it works.
v2.5.11
Released: 2026-08-31
New features
menuCategoryandshortcutNameon the NSIS targets (#630) — follow-up to #629. The NSIS targets exposed most installer settings but not these two, so a start-menu group could not be declared at all and the shortcut always landed in the start menu root — a blocker for projects moving their MSI packaging to the recommended NSIS format while keeping the folder they had under jpackage. Both are emitted fornsisandnsis-web, default tonull(nothing emitted, so existing installers are unchanged), andwindows.menuGroupacts as the defaultmenuCategoryexactly as it does for MSI. See Customize the NSIS installer.
v2.5.10
Released: 2026-08-31
Bug fixes
- MSI installer options (#629) — the MSI target only forwarded
upgradeCodeandperMachineto electron-builder, so every other Windows installer setting fell back to an electron-builder default:windows.menuGroupwas ignored and the shortcut landed in the start menu root,oneClickdefaulted totrueso the installer ran with no UI, andrunAfterFinishlaunched the app as soon as the install finished.MsiSettingsnow emitsoneClick,runAfterFinish,createDesktopShortcut,createStartMenuShortcut,menuCategory, andshortcutName. Defaults match electron-builder unless a project opts in;windows.menuGroupis the defaultmenuCategory.windows.menu/windows.shortcutstay unmapped (jpackagefalsevs electron-buildertrue). See Build an MSI for enterprise deployment.
v2.5.9
Released: 2026-08-31
Bug fixes
- Fatal dialog stack trace (#627) — the 2.5.8 native dialog stuffed the throwable into
the message line. On Linux that doubled the title ("Fatal Error" twice on WMs that draw
dialog titlebars) and the unbounded secondary label sized the dialog to the whole screen.
The payload is now a short message plus
Throwable.stackTraceToString(): all three platforms render the trace in a bounded scrollable monospace view with a Copy button (NSAlertvia an out-of-processosascriptchild on macOS, an in-memoryDLGTEMPLATEon a fresh thread on Windows,GtkMessageDialogon Linux). Compact fallbacks (CFUserNotification/MessageBoxW) keep thetoString()summary, capped at 2000 chars so aVerifyErrorbytecode dump cannot silently hide the box. See Handle uncaught exceptions.
v2.5.8
Released: 2026-08-31
New features
- Native fatal-error dialog (#622 / #623) — an exception that escaped a Tao event
dispatch used to be cleared at the JNI boundary, leaving a frozen, silent, unclosable
window. The default path now logs the stack at
SEVERE, shows a blocking native dialog (CFUserNotificationon macOS,MessageBoxWon a dedicated thread on Windows,GtkMessageDialogon Linux), exits the Tao loop, and rethrows sonucleusApplication/taoApplicationend with exit code 1. The dialog is shown after the loop has exited — a modal pump inside a tao callback deadlocks the main thread. Skip it with-Dnucleus.tao.fatalErrorDialog=falsefor unattended runs. See Handle uncaught exceptions. WindowExceptionHandlerFactory(#621 / #625) — Tao mirror of Compose Desktop's AWT factory. ProvideLocalWindowExceptionHandlerFactoryto catch failures during layout, draw, input, IME, and accessibility; a handler that returns normally drops the frame and keeps the window alive. Composition failures still kill the recomposer (Compose's own design); swallowing one logs atSEVEREinstead of leaving a window that never updates. The default factory rethrows into the fatal dialog.@ExperimentalComposeUiApi. See Handle uncaught exceptions.
v2.5.7
Released: 2026-08-30
Bug fixes
- Popup render re-entry on a scrollbar drag (#620) — dragging a scrollbar inside a
TrayApppopup scrolls synchronously inside the pointer event, and theLaunchedEffects of the lazy items subcomposed by that scroll scheduled a frame the standalone pump rendered inline. Measure and layout re-entered while the first pass was still on the stack, throwingperformMeasureAndLayout called during measure layoutand leaving the drag with a non-zero pending scroll. Every scene entry point of the standalone hosts — pointer, scroll, key dispatch, andsetContent— now runs under the pump's re-entrancy guard, so a frame scheduled mid-pass is posted to the Tao main queue instead. See Notes.
v2.5.6
Released: 2026-08-30
Bug fixes
- Linux IME preedit (#558 / #613) — the Linux backend pinned
gtk::IMContextSimple, GTK's built-in fallback, which never reaches the system input method: CJK input was not degraded but impossible, and typingaiueothen confirming left a straya. The backend now usesgtk::IMMulticontext— ibus or fcitx5 through the GTK immodule on X11, the text-input-v3 client on Wayland — and routes its signals into the sameImePreedit/ImeCommitevents as macOS and Windows. Keys the input method consumed no longer reach Compose, including the orphan key releases Wayland delivers for a filtered press, and the candidate window follows the caret. See Text input. - Linux candidate window covering the caret (#613) — GTK places its windows around a cursor
area in logical pixels relative to the toplevel
GdkWindow, not a point in physical pixels relative to the client area, so the candidate list landed on the composition it described. The caret rect is scaled and translated by the content widget's allocation, matching the correction the Wayland subsurface already applies. See Text input. - Linux modifier state drift (#613) —
ModifiersChangedwas emitted only when the key itself was a modifier, so Compose tracked Ctrl, Shift, Alt, and Super from press and release bookkeeping. Input methods on X11 re-inject the events they forward, and a dropped Control release left Compose believing Ctrl was held for the rest of the session: a plain Return read as Ctrl+Return. The state is now derived from the GDK modifier mask carried by every event, so it self-heals on the next keystroke. - macOS press-and-hold accents (#611 / #612 / #617) — Nucleus forced
ApplePressAndHoldEnabledin four preference domains and guessed from a state machine when the accent picker was active. A held letter then did nothing at all on keyboards where the picker cannot engage, and ordinary fast typing armed the picker flag and routed the next commit into the replace path, deleting the character just committed ("Xcode" landing as "Xcde"). Nucleus no longer reads or writes the user default — the OS decides whether a held letter repeats or opens the picker — and the pick is applied from thereplacementRangeAppKit sends withinsertText:, select-then-insert. See Text input. - Sub-pixel pointer jitter eating clicks (#615 / #619) — Tao reports cursor positions in
1/1024 px and macOS emits a
CursorMovedbefore everymouseDownandmouseUp, so a click drifting a fraction of a pixel produced a real move delta, started a parent drag gesture, and cancelled the tap: selections needed two clicks. Moves under 1 dp from the last dispatched position are now suppressed, andviewConfiguration.touchSlopis density-scaled to 18.dp instead of 18 raw pixels, which had halved every drag and scroll threshold on 2x displays. See How it works. - Linux tray popup scroll (#610) — standalone, overlay, and owner-based popups now feed wheel
events through the same AWT-shaped dispatch as
TaoWindow, with the Windows lines-per-notch value fromLocalScrollConfig. Standalone popup frames paint inline when the caller is already on the main thread, so a wheel flood cannot starveMainEventsCleared. See Notes. - Auto-launch at half size on GNOME (#614 / #616) —
graphical-session.targetis reached beforegsd-xsettingswritesXft.dpiinto the X resource database, so a HiDPI app started at login frozesun.java2d.uiScaleat 1.0 while a manual launch was always correct. The generated systemd user unit is ordered aftergnome-session-x11-services-ready.target. systemd ignores ordering on units that are not loaded, so this is a no-op on other desktops. See Notes.
v2.5.5
Released: 2026-08-28
Bug fixes
- macOS tray popup and Show Desktop (#609) — the standalone
NSPanelhad the default collection behavior, so "Click wallpaper to reveal desktop" on Sonoma and later Exposé-slid the popup away while Compose was already fading it. The panel is now stationary, joins all spaces, is fullscreen-auxiliary, and is ignored by window cycling, soTrayAppdismisses it itself. See Notes. - macOS tray popup dismissed by its own icon (#609) — the outside-click monitor counted a
mouseDownon theNSStatusItemand on its native context menu as a click outside the panel, so a right-click hid the popup before the menu appeared. Those windows are skipped for standalone panels; the left-click toggle stays with the tray callback. See Notes.
v2.5.4
Released: 2026-08-27
Bug fixes
- Linux inbound drop on tray popups (#605 / #607) — a
TrayApppopup on Linux is an override-redirect X11 window, so GTKgtk_drag_dest_setcannot attach. Inbound XDND 5 is implemented on the panel event thread and dispatched throughTaoSceneDnD, matchingDecoratedWindow. See How it works. - macOS tray popup scroll (#608) — popup
NSPanels forwarded raw AppKitscrollingDelta.TaoWindowalready reshapes those to AWTpreciseWheelRotation(negate Y, physical /10 for precise deltas). Tray and overlay popups now use the same mapping, so wheel sign and trackpad magnitude match the main window. See Notes.
v2.5.3
Released: 2026-08-27
Bug fixes
- Inbound drop on Windows and macOS tray popups (#604) —
TrayApppopups are ownerless native panels (WS_POPUP/NSPanel), notTaoWindows, so they had no drop target. Inbound file drops now reach ComposedragAndDropTargetthroughTaoSceneDnD. Windows native-image builds include the JNI metadata for that path. See How it works. - Windows IME preedit (#558 / #603) — composition was never forwarded, so the IME painted
its own floating window near the top-left of the window, and keys the IME had consumed
(
VK_PROCESSKEY) still reached Compose: conversion Enter inserted a newline, candidate arrows moved the caret, Backspace deleted committed text. Preedit now renders inline, the candidate list follows the caret, and consumed keys are dropped. See Text input.
v2.5.2
Released: 2026-08-27
Bug fixes
- Windows tray popup scroll (#601) — popup and overlay
WndProcs reported raw Win32 wheel units.TaoWindowalready negates those to AWTpreciseWheelRotation; standalone and owned popup layers now do the same, soTrayAppscrolling is no longer inverted. See Notes. - Hidden Windows tray popup GPU frames (#602) — a hidden standalone tray popup no longer submits GPU frames.
- UTF-8 javac/javadoc encoding (#600) — the compiler and javadoc tasks pin
-encoding UTF-8, so non-ASCII KDoc no longer fails the Windows build.
v2.5.1
Released: 2026-08-27
New features
- GraalVM innovation channel defaults to 25.3 (#598) —
GraalvmChannel.INNOVATIONresolves to25i3. See Provision the toolchain.
Bug fixes
- Animated
WindowState.sizetremble (#576 / #597) — programmatic height animation left the HWND/NSWindow a frame ahead of the Compose scene, and native resize echoes wroteWindowState.sizebackwards. Inner size is applied synchronously,EVENT_RESIZEDis pushed in the same turn, and in-flight programmatic echoes are ignored. See DecoratedWindow parameters. - macOS IME preedit (#595 / #596 / #599) — CJK composition was invisible and the committing
Enter leaked as a newline.
setMarkedText/unmarkTextare forwarded as preedit, commit goes throughcommitText, and keys the IME consumed are dropped. The PressAndHold accent picker stays gated while a composition is live, so a segment commit cannot arm the picker and hijack the next commit (duplicated segments, U+F7xx tofu). See Text input.
v2.5.0
Released: 2026-08-26
New modules
- Spell check (
nucleus.spellcheck) — checks spelling through the engine each OS already ships: Hunspell on Linux (loaded withdlopen, no compile-time dependency),NSSpellCheckeron macOS, and the Windows Spell Checking API. Ships aSpellcheckContextMenuwrapper that adds suggestions and "Add to dictionary" to a Compose text field's context menu, plus an engine API (SpellChecker,SpellcheckSession) usable without Compose.nucleus-applicationexposes it as anapidependency, so no extra Gradle line is needed. Where no engine is available every operation is a no-op rather than an error. See Spell check.- Per-field and process-wide language override via
locale/SpellChecker.locale. See Choose the check language. SpellcheckMenuPlacementputs suggestions above or below Cut/Copy/Paste. See Place the menu items.- The "Add to dictionary" label is localized for 45+ locales; user words persist to
~/.config/nucleus/spellcheck/<tag>.dic.
- Per-field and process-wide language override via
New features
- Native context menus (#542, #544, #545, #547) —
nativeContextMenu = trueonDecoratedWindow/HostedWindowreplaces the Compose-drawn context menu with the platform's: a realNSMenuon macOS, and a Compose flyout styled as Fluent on Windows, Adwaita on GTK desktops, and Breeze on Qt desktops. CoversContextMenuArea, text-field Cut/Copy/Paste, and spellcheck items. Tao backend only; accepted and ignored on AWT. See Context menus.NucleusContextMenuItem,NucleusContextMenuDivider, andNucleusContextMenuSubmenubuild items with icons and lazy submenus. See Add your own items.- Stock icons carry their platform shortcut label (
⌘C/Ctrl+C), overridable per item. Drawn on the Windows and Linux flyouts. See Show keyboard shortcuts. - New
LinuxUiToolkitincore-runtimereports whether the session is Gtk or Qt, which is also how the Linux menu style is chosen. See Detect the Linux toolkit. menu-macosgained the popup primitives behind it:NativePopupMenuItem,popUpNativeMenu,isNativePopupMenuAvailable.
- Overlay windows (#564, #568) — new window flags for watermarks, desktop widgets, and
heads-up overlays:
clickThrough(pointer events pass through),alwaysOnBottom(below normal windows, mutually exclusive withalwaysOnTop), andvisibleOnAllWorkspaces. All three are reactive, with imperativeTaoWindowsetters alongside. See Overlay windows.transparentis now exposed on the backend-agnosticDecoratedWindowand the Material and Jewel window wrappers, not just the Tao composable. A fully transparent window drops the contour that traced the rectangular window instead of the content, and Compose scenes are told the window is transparent so dialog scrims blend against alpha (#559, #561).forceX11gives one window an XWayland surface without moving the whole process off Wayland, andTaoWindow.isNativeWaylandSurfacereports what it actually got. Flags that cannot work on a native Wayland surface log once per window with the reason. See Take an X11 surface on Wayland.
- Compose over native views (#587) — the
NativeViewcontentslot now draws in the window's own Compose scene on all three platforms, so Compose siblings declared after the view and in-scenePopups paint over it, and overlay content claims its own pointer events. Linux supports thecontentslot at all for the first time (Wayland only).Modifier.consumeOverlayPointerEvents()is deprecated and no longer needed. See Overlay Compose content. - Linux clipboard through GTK (#582, #583) — the Tao clipboard on Linux goes through GDK
instead of AWT, so copy and paste work in a Wayland-native window and in a session with no
XWayland. Images (as PNG) and file lists (
text/uri-listplus the GNOME copied-files target) are carried in both directions alongside plain text. No API change: use Compose'sLocalClipboard. See Copy and paste. EnergyManager.acquireAwake— returns anAwakeHandlethat holds one awake request until it is closed, so independent features can each keep the machine awake without releasing each other.keepAwakekeeps its single last-writer-wins slot. This also backs Compose'sModifier.keepScreenOn, which the Tao backend now implements. See Hold several awake requests at once.- Custom scheduler command (#540) —
SchedulerConfig.executablePathandexecutableArgumentspoint the OS scheduler at a custom launcher instead of the current executable. Set them before the firstenqueue; values are baked into the generated plist, unit, or task. See SchedulerConfig. - Compose 1.12 (#354, #550, #551, #555) —
decorated-window-taomoves to Compose Multiplatform 1.12, with frames driven throughSingleComposeSceneRenderingScopeand the newRectManagerdelayed dispatch kept off the AWT event thread. jdk.unsupportedin the default runtime modules —sun.misc.Unsafeis required by JNA, Jewel, and many common libraries, so the module is included by default rather than discovered through a runtime failure. See thenativeDistributions { }reference.
Breaking changes
GenericProviderrequireshttps— a non-httpsupdate origin now throwsIllegalArgumentExceptionat construction. The manifest, checksums, and artifact all come from that one origin, so plainhttplets an on-path attacker rewrite the three together and the SHA-512 protects nothing.httpis still accepted for loopback hosts so integration tests can serve fixtures without TLS. See Providers.
Bug fixes
- Self-update scripts written to a private directory — the detached update script and its log
went to a fixed path in the shared temp directory (
/tmp/nucleus-update.shon Linux), which another local user can pre-create as a symlink or a file they own, turning the update into local code execution as the app's user. Each run now gets a fresh owner-only (0700) directory. - Windows update script escaping — manifest-derived paths are escaped before they reach PowerShell.
- Linux root update helper — closed a time-of-check/time-of-use window and a downgrade path in the privileged helper.
- Linux update helper leaked a gpg-agent — the signature check no longer leaves a gpg-agent running inside the app's systemd scope.
- MPRIS invalid D-Bus name (#548) — an app id that is not a valid D-Bus name no longer hangs media-control startup on Linux.
- Context menu dismissal and first right-click — the flyout closes when the owning window loses focus, and the macOS menu opens on the first right-click in an app that is not yet active.
- Tao fixes — the dialog close button animates its hover like
DecoratedWindow; a native session that swallows a mouse-up no longer leaves a stuck button; Adwaita separators follow libadwaita'scurrentColorrule.
v2.4.7
Released: 2026-08-17
Bug fixes
- Windows SMTC local cover art (#552) — a
file://coverUrl(or a bare path) now appears in the Windows media flyout.CreateFromUrinever opens local files, so SMTC kept a blank square. Local covers go throughCreateFromFile; remotehttp/httpsURLs are unchanged. See Publish now-playing metadata.
v2.4.6
Released: 2026-08-16
Bug fixes
- macOS fullscreen minimize button (#539 / #531) — replacement traffic lights in native fullscreen cannot miniaturize the window. The minimize button is disabled so it no longer looks clickable; close and zoom stay on the same hover path. At rest the copies paint the standard active colours instead of inactive gray. See Window controls.
v2.4.5
Released: 2026-08-16
Bug fixes
Dp.Unspecifiedwrap-content window size (#535) —DecoratedWindowno longer passes NaN through to the native surface when aWindowState/DialogStateaxis isDp.Unspecified. Wrap-content axes are measured after the first composition and applied, matching Compose Desktop. See DecoratedWindow parameters.- Linux discrete mouse-wheel scroll (#533) — GDK only fills
delta_x/delta_yfor smooth (trackpad) events. A discrete wheel notch arrived with a zero delta, so Compose never scrolled. Direction is now mapped to a unit delta. - Win11 caption-button hover fade (#537) — platform caption buttons use the system hover fade duration. See Window controls.
v2.4.4
Released: 2026-08-14
Bug fixes
- Win11 CSD corners clipped (#527) — windowed CSD draws the 8px rounded contour through DWM so the Compose frame is not clipped at the corners. See DecoratedWindow notes.
- macOS press-and-hold accent picker (#529 / #530) — key-repeat now reaches
interpretKeyEvents:, so AppKit's PressAndHold menu opens. Picking an accent replaces the already-committed base letter (e→é) instead of appending. - Windows multi-monitor popup DPI (#528) — popups and
DecoratedDialogpick up the target monitor's DPI and work-area constraints when they open on a different display from the owner. See Per-monitor HiDPI notes.
v2.4.3
Released: 2026-08-13
Bug fixes
- Windows CSD frame hidden by DWM (#523 / #522 / #520) — windowed CSD (no Mica/Acrylic) clears only the DWM border fill so the Compose frame stroke is visible, while the Win11 8px rounded clip and drop shadow stay. See DecoratedWindow notes.
appResourcesmissing from GraalVM native packages (#524) —prepareAppResourcesis copied next to the native binary andcompose.application.resources.diris set forpackageGraalvmNativeandrunWithNativeAgent. Sidecars such as Dawn'sdxil.dllload the same way asrun/ jpackage. See GraalVM tasks — metadata, installers, and helpers.
v2.4.2
Released: 2026-08-12
Bug fixes
- Windows sibling GPU cache purge (#519 / #514) — resize-path Skia cache purges bind
the host's own ANGLE context first, so a sibling window's
WM_PAINTcannot leave another unshared context current and delete that window's glyph atlas and icons. See GPU render context notes. nativeLinuxHandleson Windows and macOS (#518) — the Linux-only JNI entry is now platform-guarded. Detaching a tab into a popup withWindowPosition.Absoluteno longer throwsUnsatisfiedLinkError. See DecoratedWindow parameters.
v2.4.1
Released: 2026-08-12
Bug fixes
- White region on Windows off-screen windows (#516) — a window created partly off-screen
no longer stays white in the previously clipped area after you drag it into view. Each
WM_MOVErequests a full present so newly exposed pixels are filled.
v2.4.0
Released: 2026-08-11
Highlights
TaoGpuRenderContext— in-process GPU on the scene's device. Map engines, 3D viewports, and charting can allocate render targets on the window's own SkiaDirectContextand native device (Metal / ANGLE GLES / native EGL) with no second GPU, no shareable handle, and no per-frame cross-device copy.TextureViewremains the contract for foreign producers. See GPU render context.AwakeMode— keep the system awake without forcing the display.EnergyManager.keepAwake(AwakeMode.SYSTEM_ONLY)lets the screen saver and display sleep behave normally during long background work.keepScreenAwake()remains as a deprecated forwarder. See Keep the system awake.- Public ABI freeze. Published runtime modules run under Kotlin
explicitApi()with kotlinx binary-compatibility-validator baselines (api/*.api);apiCheckis part ofcheck/preMerge. Exception:decorated-window-jeweluntil BCV can read JVM 25 class files.
New features
windows.msi { perMachine }(#480) — install-scope DSL aligned withnsis { perMachine }.windows.perUserInstallis deprecated (inverted meaning) but still works whenmsi.perMachineis unset. MSI remains per-machine by default. See Build an MSI.
Improvements
- Unified JUL logging and renamed tray log API (#491) — runtime modules log through
java.util.logging;composeNativeTrayLoggingLevel→nucleusLoggingLevel/NucleusLoggingLevel(deprecated aliases retained). - Safer updater construction (#493) — provider validated at construction, config snapshotted, downloads staged privately instead of a predictable shared temp path. See Auto-update.
- Windows outbound drag (#482) —
DoDragDropdeferred off Compose pointer dispatch so outbound drag frames paint without reentrancy. See Drag and drop.
Bug fixes
- macOS live-resize trembling (#476) — content no longer trails AppKit bounds during corner resize.
- Windows interactive resize lag (#479) — VSync dropped through the modal resize loop so content tracks the border drag.
- Frame-paced GPU through modal loops (#489, #505) — keep VSync on Windows move/resize and
Linux resize bursts when the scene hosts
TextureViewimports orTaoGpuRenderContextconsumers. See GPU render context. - macOS Metal render-thread leak (#495) — autorelease pool around every render-thread task.
LocalComposeSceneContextunderDecoratedWindow(#499) — Popup / Dialog / DropdownMenu / Tooltip inside decorated window content no longer throw. See DecoratedWindow.- macOS overlay detach / focusable retain (#496), Wayland popup buffer_scale (#508), macOS scene density from the window's display (#509), zoom-button tiling hover menu (#511), RTL title-bar constraints while fullscreen (#512).
v2.3.2
Released: 2026-08-07
New features
HostedWindow/HostedDialogcomposition hosts (#473) — libraries and navigation open secondary windows without hard-coding Compose Desktop's AWTWindow/Dialogor a specific design-system chrome.nucleusApplicationprovidesLocalNucleusWindowHost/LocalNucleusDialogHost(defaults:DecoratedWindow/DecoratedDialog); override the host to inject Material, Jewel, or app chrome. See Hosted windows.
Bug fixes
- Secondary window drag and system controls (#472) — re-provide
LocalTaoWindowandLocalTitleBarInfoafter bridging parent locals into a secondary Tao scene so title-bar drag, double-click maximize, and min/max/close bind to the child window.BasicTitleBarusesModifier.windowDragArea(window)so drag does not depend on a parentLocalTaoWindow. See Open a window from composition and Drag areas. - Wayland
popupForCSD content origin (#474) —TaoWindow.setOuterPositionadds the parent hidden-titlebar CSD content origin for native Wayland popup overlays, so content-space coordinates (tab ghosts, HUDs) no longer drift by the theme shadow margin. In-scene popup layers no longer double-apply that offset. See DecoratedWindow parameters.
v2.3.1
Released: 2026-08-06
New features
- XDG Desktop Portal parent for Tao windows (#466) —
TaoWindow.xdgPortalParent(),x11PortalParent/x11WindowId, andexportXdgForeignHandle()/XdgForeignExportso FileKit and other portal clients can parent file choosers on X11 and Wayland (x11:<hex>/wayland:<token>). See Native file dialogs. TaoWindow.nsWindowHandleon macOS (#469) — owningNSWindow*for sheet / dialog parenting (beginSheetModalForWindow:); distinct fromnativeHandlewhich is the Compose hostNSView*. See Native file dialogs.- Per-format compression for AppImage and Windows portable (#468) —
linux.appImage { compressionLevel }andwindows.portable { compressionLevel }override the rootnativeDistributions.compressionLevel, so DEB/DMG can stay onUltrawhile AppImage/portable useNormalorStore. See Build an AppImage and Portable mode.
Improvements
- L1 GraalVM metadata expansion (#470) — richer ktor (client plugins, server,
websockets), new
androidx-sqlite-bundledpack, broader JDK FFM/VarHandle/Module coverage,AtomicInt/AtomicRefandkotlin.kotlin_builtins. See Automatic metadata. - Kotlin agent phantoms always dropped on cleanup (#470) — tracing-agent mapped
types (
kotlin.Any,kotlin.Int,FunctionN, collections) are removed duringcleanupGraalvmMetadatawithout needingremoveUnresolvable. See Clean up manual entries.
Bug fixes
- KMP named JVM targets and orphan detection (#467) — project-class / orphan
detection uses the application target's compilation outputs
(
jvm("desktop")→desktopMainClasses) instead of hardcodedjvm/mainpaths; nest-internal edges no longer hide real Room*_Implclasses. See Detect orphan project classes. - Linux NativeView opaque region (#471) — clear the full-surface opaque region while
a
NativeViewis attached so GTK (e.g. WebKit) shows through the EGL subsurface again after #447. See Native views. - Linux NativeView overlay click offset (#471) —
consumeOverlayPointerEventsmaps pointer events into content coordinates (window bin), matching CSD shadow-margin normalisation. See Overlay Compose content.
v2.3.0
Released: 2026-08-06
Highlights
TextureView— external GPU textures in the Compose scene. Composite decoder or engine frames with real z-order, clipping, andgraphicsLayertransforms, and no CPU frame copy. Windows uses ANGLE/D3D11 shared handles, macOS Metal/IOSurface, Linux DMA-BUF/EGLImage(including planar YUV I420/YV12). Frame updates go throughTextureViewController.markFrameAvailable(draw-only invalidation). See TextureView, platform sources, and how it works.- Per-platform notification options on the common DSL.
notification { }acceptslinux { },macos { }, andwindows { }blocks applied only on the matching OS (urgency, interruption level, toast scenario, …). See Platform-specific options. - Differential auto-update downloads.
updater-runtimereassembles installers from the previous artifact plus HTTP range requests for changed blocks (electron-builder block maps). On by default viadifferentialDownload. See Differential downloads. LocalNucleusApplicationScopeand receiver-less windows. Open secondaryDecoratedWindow/DecoratedDialogfrom deep in the composition without threading the application receiver. See Open a window from composition.- Live
isSystemInDarkTheme()undernucleusApplication. Compose'sLocalSystemThemeis fed fromdarkmode-detector, so official and library call sites track OS theme changes. See Bridge to ComposeisSystemInDarkTheme.
New features
TextureView+ platform source factories (#429 / #338) —TextureView,TextureViewController,rememberTextureViewController,nucleusD3D11SharedTextureSource,nucleusIOSurfaceTextureSource/nucleusMetalTextureSource,nucleusDmaBufTextureSource/nucleusEglImageTextureSource/nucleusYuvDmaBufTextureSource, plus Linux acquire-fence signalling. Samples: mediafoundation-demo, avfoundation-demo, gstreamer-demo. See TextureView.- Platform blocks on
notification { }(#436 / #397) —LinuxNotificationScope(urgency,category,transient,resident,expireTimeout),MacNotificationScope(interruptionLevel,relevanceScore,subtitle),WindowsNotificationScope(scenario,duration). See Platform-specific options. - Differential downloads in
NucleusUpdater(#428) — uses published.blockmapcompanions (NSIS, macOS ZIP/DMG) and AppImage-embedded maps;DownloadProgress.isDifferential;UpdaterConfig.differentialDownload(defaulttrue) andcacheDir. See Differential downloads and Builder fields. LocalNucleusApplicationScope(#449 / #438) — CompositionLocal provided bynucleusApplicationon AWT and Tao; receiver-lessDecoratedWindow/DecoratedDialogoverloads. See Open a window from composition.- System theme bridge (#463) —
ProvideNucleusSystemThemewiresisSystemInDarkMode()intoLocalSystemTheme;darkmode-detectoris anapidependency ofnucleus-application. See Bridge to ComposeisSystemInDarkTheme. - Exact reachability metadata on the GraalVM dev loop (#453 / #440) —
graalvm { exactReachabilityMetadata = ExactReachabilityMetadata.APP_PACKAGES }(default) onrunGraalvmNativeonly;-Pnucleus.graalvm.missingRegistration=warn|exit|throw. See Exact reachability on the dev loop. - Orphan project-class detection (#460 / #441) —
detectOrphanProjectClasses(defaulttrue) registers public no-arg constructors for reflectively-only types (Room*_Impl, …); opt-inreflectionForProjectClasses. See Detect orphan project classes. - GraalVM innovation channel defaults to 25.2 (#432) —
GraalvmChannel.INNOVATIONresolves to25i2. See Provision the toolchain.
Improvements
- Silent DEB/RPM self-update packaging (#457) —
nucleus-update-helperships in the package payload sodpkg -S/rpm -qfattribute it; afterInstall only installs polkit; detached*.ascuploaded next to packages. See Passwordless updates on Linux. - AppImage post-update relaunch (#465 / #178) — replace-in-place while the old mount holds,
clean environment on restart (
APPDIR/LD_LIBRARY_PATHunset). See Supported formats. - Linux portal global hotkeys (#455 / #264) — stable
shortcut_idfrom modifiers+keyCode, debouncedBindShortcuts,GlobalHotKeyManager.commitRegistrations()andportalShortcutId. See Linux portal registrations. - Unresolvable cleanup metadata reporting (#461 / #439) —
cleanupGraalvmMetadatareports types that resolve nowhere; optional-Pnucleus.graalvm.cleanup.removeUnresolvable=true. See Clean up manual entries. - Metadata dirs as
nativeImageCompileinputs (#459 / #431) — editing reachability metadata invalidates the native image task instead of serving a stale binary. mlProfileInference = falsegated on Oracle (#458 / #452) — community toolchains skip-H:-MLProfileInference(unrecognized) with a warning. See graalvm reference.
Bug fixes
- Outbound OS drag freezes the Tao host (#434) — Windows, macOS, and Linux keep the render
loop alive during
DoDragDrop/ AppKit / GTK drag via a sharedDragPump. See Drag and drop. - Wayland resize flash / shift (#462 / #444) — paint at last drawable size until
wl_egl_window_resizeapplies on the next present. See Wayland. - Linux Compose subsurface opaque region (#447 / #446) —
wl_surface.set_opaque_regionwith transparent corners preserved for the CSD shadow. - Linux jpackage SIGSEGV on long classpaths (#456 / #454) — after
jpackage, multi-entryapp.classpathis collapsed into a pathing jar (JDK-8380085 workaround). - FSEvents roots reached through a symlink (#448 / #442) — macOS temp dirs under
/var→/private/vardeliver events again. See Filesystem watcher. - SLF4J no longer forced to build-time init (#450 / #443) — avoids image-heap failures with
run-time SLF4J 2.x backends; opt in via
buildArgsif you want build-time init. See Set build arguments. runWithNativeAgenttoolchain mismatch (#451 / #437) — forks throughJavaLauncherinstead of a conflictingexecutableproperty.- Linux popup / tray panel EGL neutrality (TextureView series / #350) — popup layers and tray panels no longer break the window EGL binding; Wayland popups offset by CSD content origin.
Samples
- mediafoundation-demo, avfoundation-demo, gstreamer-demo — end-to-end video into
TextureViewon Windows, macOS, and Linux (native-image builds for the GStreamer sample).
v2.2.0
Released: 2026-08-03
Highlights
- Window scaffold and chrome primitives. Full-window layouts without giving up native drag, caption zones, or traffic-light insets. Compose content through
WindowScaffoldwithTitleBarPlacement.DockedorOverlay, and rebuild chrome from public APIs:Modifier.windowDragArea/noWindowDrag,WindowControls, macOSwindowGlassRegion, Windows 11WindowsBackdrop(Mica / Acrylic / MicaAlt),WindowBackground, andWindowAppearance. See Window scaffold, chrome primitives, and platform materials. - GraalVM tasks mirror the JVM pipeline.
runGraalvmNativeis the fast dev loop (-Obquick-build); full optimization lives onrunGraalvmNativeDistributable. NewcreateGraalvmNativeDistributableandpackageGraalvmNativeDistributionForCurrentOSmatchcreateDistributable/packageDistributionForCurrentOS. The native app folder lands undercompose/binaries/<app>/graalvm-app. See Tasks & CI — public surface and output locations. - Type-safe garbage collector selection.
garbageCollector = GarbageCollector.Zon the JVM path andgraalvm { garbageCollector = NativeImageGarbageCollector.G1 }for native images. G1 is Oracle GraalVM + Linux only and degrades with a warning elsewhere. Heap-percent flags follow the selected collector. See Choose a garbage collector and the Gradle DSL.
New features
WindowScaffold+TitleBarPlacement(#412, #129) — design-system-agnostic chrome host.Dockedkeeps the classic bar-above-content layout;Overlayfills content to the full window height and hands the measured bar height back as topPaddingValues. OptionalautoHideInFullscreenandpassThroughToContentonOverlayfor immersive and hit-test-through title bars (#423). See title bar placement.- Chrome primitives for custom title bars (#412) —
Modifier.windowDragArea/noWindowDrag,WindowControls+WindowControlsRenderer,WindowDoubleClickAction, andLocalWindowChromeInsetsso toolbars can place content around traffic lights and KDE edge padding. See chrome primitives, drag areas, and window controls. - Platform materials (#412) —
Modifier.windowGlassRegion(macOS System Settings-style sidebar/content/inspector panes),WindowsBackdrop(DWM Mica / Acrylic / MicaAlt with tier pin),WindowBackground(clear colour from inside the content tree),WindowAppearance(force light/dark on native surfaces). See platform materials, macOS glass, and Windows 11 backdrops. DecoratedWindow(transparent = true)on Tao (#419) — full-window transparency for ghost overlays. Pair withundecorated = truefor borderless see-through windows. AWT is out of scope; call the TaoDecoratedWindow(e.g. viataoApplication). See transparent overlays and DecoratedWindow on Tao.- Native GTK CSD drop shadow (#422) — Linux client-side decorations use the hidden-titlebar pattern so the shadow tracks the window correctly, including during interactive moves. See DecoratedWindow notes.
- AccessKit on Windows (#420) — Windows accessibility now shares the AccessKit wire path with Linux (UIA provider). AccessKit crates bumped across both platforms; Linux AT-SPI probes match Windows severity. See Accessibility.
garbageCollectoron the JVM and native DSL (#408) —GarbageCollector(SERIAL,PARALLEL,G1,Z,SHENANDOAH,EPSILON) for HotSpot;NativeImageGarbageCollector(SERIAL,G1,EPSILON) for--gc=. Unset keeps JVM ergonomics / native-image Serial. See Choose a garbage collector and Gradle DSL — GraalVM.NucleusApplicationScopeimplements ComposeApplicationScope(#372) — libraries scoped to plainApplicationScope(for example ComposeNativeTray) resolve insidenucleusApplication { }without a separate overload set. See DecoratedWindow notes.
Ecosystem (separate repos)
Published around the 2.2 line; versioned independently of Nucleus:
- compose-macos-26-ui — macOS 26 design system +
MacosDecoratedWindow. - compose-fluent-ui — Fluent Design +
FluentDecoratedWindow. - yaru-compose-ui — Yaru / GNOME design system +
YaruDecoratedWindow.
Improvements
- macOS
.appbundle name consistency (#409) — every artifact (DMG, ZIP, …) ships the same bundle name derived fromappName, so auto-update no longer deletes one path and fails to open another whenappName != packageName. - Glitch-free Windows fullscreen toggle and macOS fullscreen transition ramp parity (#412 / #413).
- macOS display-scale follow when the window hops between displays (#412). See Per-monitor HiDPI.
Bug fixes
- NsView
setBounds/ resize on layout changes (#421) — embedded macOS native views update their frames when Compose layout changes. See Native views. - Scheme-only deep link URIs (#425 / #414) —
DeepLinkHandleraccepts opaque forms such asmyapp:?query=…(common fromxdg-open), not onlyscheme://authority forms. Windows drive paths are still rejected. See Deep links — how it works. - Hot-reload gate matches the published Tao artifact name (#424 / #415).
v2.1.10
Released: 2026-07-26
Bug fixes
- Resolve JDK library jars on JMOD-less JDKs (#407) — ProGuard release packaging failed on JDKs that ship without a
jmodsdirectory (Temurin 25+ after JEP 493). The task falls back to extracting the run-time image withjimage extractand passes one class root per module. JDKs that still shipjmodskeep the previous path. - Stop CSD shadow tracing while the window is dragged (#393 / #383) — the Linux client-side-decoration shadow no longer leaves a trail during interactive window moves.
v2.1.9
Released: 2026-07-26
Bug fixes
- Survive obfuscation for all JNI bridges and coroutines (#405) — with
obfuscate = trueon by default since 2.1.6, release builds crashed at runtime. The module-by-module JNI keep list is replaced by generic rules that keep the names of anydev.nucleusframeworkclass declaring native methods plus*Bridge/*Jniobjects whole, fixingUnsatisfiedLinkErrorin the modules the list missed (autolaunch, launcher-linux, notification-linux/macos, service-management-macos, system-info, taskbar-progress, graalvm-runtime). Droppingallowoptimizationfrom thekotlinx.**safety rules fixes aVerifyErrorinChannelsKt.trySendBlocking; shrinking stays fully active. The system-color and media-control native builds now invokebuild.batby absolute path like every other module.
CI
- Microsoft JDK on Windows, Temurin elsewhere (#406) — replaces JBR as the
setup-nucleusJDK. The Microsoft Build of OpenJDK is the only mainstream distribution shipping GA windows-aarch64 builds for current LTS majors, anddecorated-window-jbrneeds no JBR at build time since the JBR API comes from theorg.jetbrains.runtime:jbr-apiartifact.
v2.1.8
Released: 2026-07-26
New features
aotCache { }configuration block (#404) — exposes the AOT cache portability trade-off:compatibility = NATIVErestores the JDK default for locally-built or fleet-homogeneous deployments, andextraTrainingJvmArgsis an escape hatch for the training run.enableAotCachekeeps working as a shorthand.
Bug fixes
- CPU-portable AOT cache by default (#404) — the JDK 25+ AOT cache also stores machine code (i2c/c2i adapter blobs) emitted for the training machine's CPU features, and HotSpot records no ISA information for that region before JDK 27, so a cache built on a CI runner died with
EXCEPTION_ILLEGAL_INSTRUCTION/SIGILLon a narrower CPU. The cache now defaults to metadata only (-XX:-AOTAdapterCachingon both the training run and the shipped launcher), keeping the class loading and linking gains and leaving the JIT untouched at runtime.compatibility = NATIVEwarns at build time when the bundled runtime predates the CPU-feature validation added after JDK 26.
v2.1.7
Released: 2026-07-26
Breaking changes
- GraalVM Community Edition is now the default toolchain (#403) — the auto-provisioned toolchain was Oracle GraalVM, governed by the GraalVM Free Terms and Conditions. The GFTC only allows redistributing the Program provided you do not charge your licensees any fees associated with such distribution or use, and the plugin copies GraalVM runtime libraries next to the packaged executable — so that clause silently reached every app built with Nucleus. GraalVM CE (GPLv2 + Classpath Exception) carries no such restriction and is now the default via
GraalvmDistribution.COMMUNITY. Oracle GraalVM stays available behind an explicit opt-in that logs a licensing warning.-O3,--pgoand-H:AdvancedObfuscationdegrade to a warning under a community toolchain, andrunWithPgoInstrumentis not registered at all. The distribution is embedded in the install directory and the CI cache key so an existing Oracle download is never reused, and aGRAALVM_HOMEwhose distribution disagrees with the DSL is ignored.
Improvements
- Lazy toolchain provisioning (#403) — every toolchain provider now resolves in
doFirst, so an IDE sync orgradlew tasksno longer downloads a JDK.
Bug fixes
- Survive GitHub API rate limits when resolving Community Edition (#403) — a pinned version (
"25.0.2") now constructs the download URL directly instead of listing releases, making the documented pin-a-version workaround work offline; the native-image build steps passGITHUB_TOKENso the releases API call is authenticated. Floating versions ("25","25i1") still need the API. - Decode Mach-O
cpu_typein the file's own byte order (#402) —MH_CIGAM_64is the byte-swapped magic that every little-endian macOS dylib starts with on disk, socpu_typewas read swapped and every thin dylib reportedarch=UNKNOWN. Cross-checked againstlipoon 57 real dylibs: 44 decoded wrong before, all 57 are correct now. Also recognizesFAT_MAGIC_64alongsideFAT_MAGIC, and hoists the path-plus-header merge intoNativeLibArchDetector.detectEntryso the strip transform shares it. - Extract the target-arch native lib, not the first match (#401) — native libs whose JAR path carries an arch but no OS token were extracted for the wrong architecture:
detectInfodiscarded the path-detected arch whenever the OS wasUNKNOWN, and the 64-byte header buffer was too small to reach the PE machine field. An ARM64 DLL could therefore win the flattening race on an x64 target and fail to load.detectInfonow merges path and header information field by field and reads 4096 header bytes. Fixes #399.
v2.1.6
Released: 2026-07-23
New features
- Advanced obfuscation for native images (#389) —
graalvm { advancedObfuscation = true }passes-H:AdvancedObfuscation=(Oracle GraalVM only, gated on the resolved toolchain and warning otherwise) so the symbol names baked into the binary — stack traces, heap dumps,Class#getName, strings — are obfuscated. Reflection and JNI names from the reachability metadata are preserved automatically, so it is JNI-safe by construction.-H:+UnlockExperimentalVMOptionsis passed alongside it, and--enable-sbom=exportkeeps the SBOM as a build artifact instead of embedding it and re-leaking the dependency list obfuscation hides. - Obfuscate-safe ProGuard rules (#389) — when
proguard { obfuscate = true }, a bundlednucleus-obfuscation-safety-rules.prois injected automatically to preserve framework names (androidx.**,kotlinx.**) while still allowing shrinking and optimization, so the Compose and Kotlin runtimes survive renaming and only the app's own packages get obfuscated. PreventsClassNotFoundException: androidx.compose.runtime.Composer. Not injected when obfuscation is off. - Desktop-appropriate default max heap for native images (#390) — native-image's Serial GC defaults the max heap to 80% of physical RAM, far above a desktop app's norm. Nucleus now bakes
-R:MaximumHeapSizePercent=25for parity with HotSpot'sMaxRAMPercentage, configurable viagraalvm { maxHeapSizePercent = N }or an absolutegraalvm { maxHeapSize = "2g" }(which takes precedence). Both are defaults only, still overridable at runtime with-Xmx. --enable-native-access=ALL-UNNAMEDbaked into native images (#390) — native modules callSystem.loadLibraryfrom the unnamed module, which since JDK 24 (JEP 472) emits a restricted-method warning and will be blocked in a future release. The JVM run path already passed the flag; the native binary now starts clean too.- Pause the render loop while the window is minimized (#384) — each platform scene host gates its frame body on
window.isMinimizedbefore the frame-clock tick, so Compose animations park instead of recording and presenting into a hidden surface. This matters most on Windows, where ANGLE's flip-model swapchain never reports occlusion and there is no vsync back-pressure while minimized; restore re-kicks a redraw explicitly. - Jewel 0.39 and IntelliJ icons 262 (#395) — bumps Jewel to
0.39.1-262.9437.29, adds theintellij-icons-api/impldependencies that Jewel 0.39'sIntUiThemeneeds, and registers the build-time initialization and reflection entries required to avoid aMethod.invokesegfault under SVM.
Bug fixes
- Scope JNI local refs on permanently-attached upcall threads (#387) — object-creating upcalls on permanently attached threads never had their local frame popped, leaking local refs for the life of the process. The touch path was the worst:
dispatch_touchallocated threelong[]per event, so a sustained touch drag grew the JNI local reference table until it overflowed and aborted the JVM. Each such upcall body is now wrapped inenv.with_local_frame(...), covering the Linux touch and drop paths, macOS deep links, and the macOS/Windows accessibility action trampolines. - Clear pending JNI exceptions after accessibility and deep-link upcalls (#385) — the accessibility and deep-link native-to-JVM callbacks invoked
NativeTaoBridge.dispatch*withoutexception_check/exception_clear, unlike every other dispatch path. A throwing Kotlin handler left the exception pending on the long-lived callback thread (AT-SPI/zbus, UIA, AppKit), making the next JNI call on that thread undefined behavior and, underpanic = "abort", a process abort with an unrelated-looking crash site. The guard is now applied to all 18 upcall sites. - Migrate
-H:IncludeResourcesto reachability-metadata globs (#389) — the deprecated option warned at build time; the resource inclusion patterns moved into the module'sreachability-metadata.jsonwith identical semantics. The blanket font and icon globs are deliberately kept: they cover resources bundled inside library JARs, such as Jewel's SVG icons, which per-rootautoIncludeResourcesdoes not reach.
Improvements
- Shared scene drag-and-drop extracted into
TaoSceneDnD(#386) — deduplicates the three platform scene hosts into one shared file, preserving the Linux-specific behavior wherehas_filesreflects the presence of atext/uri-listtarget. - Jewel-specific native-image metadata moved into
decorated-window-jewel(#395) — the Jewel build-time initialization and reflection entries ship only with Jewel consumers;graalvm-runtimekeeps only the generic slf4j build-time init.
v2.1.5
Released: 2026-07-21
New features
- Auto-include the project's own resources in native image (#379) — GraalVM native-image builds now bundle the application's own resources automatically, not just framework and Compose resources.
- Apply dependencies' ProGuard consumer rules (#380) — ProGuard now applies the
META-INF/proguardkeep rules shipped inside dependency JARs, so libraries that provide their own rules work without manual configuration.
Bug fixes
- Tao audit hardening (#378) — native memory and lifecycle fixes, expanded test coverage, a window-host refactor, and improved logging across the Tao backend.
- Reimplement the Linux CSD drop shadow via a dedicated
wl_shmsubsurface (#381, #382) — replaces the 2.1.0 client-side-decoration drop shadow with a Wayland subsurface that renders correctly.
v2.1.4
Released: 2026-07-19
Bug fixes
- Apply
TitleBarStylecolor overrides to caption buttons (#377) — the Tao backend now honors title bar color overrides on the window control (caption) buttons.
CI
- Cache native builds, merge per-platform artifacts, and cancel superseded runs (#375).
- Tiered Tao test infrastructure (#373) — an offscreen scene harness plus a headful window suite for
decorated-window-tao.
v2.1.3
Released: 2026-07-18
Bug fixes
- Load GTK with
RTLD_LOCALon Linux (#368) — stops GTK symbol interposition from clobbering SQLite in the Tao backend. - Own the
app/runtimedirectories in RPM packages (#369) — the jpackage launcher now finds its.cfgfile. - Run the Windows outside-click hook on a dedicated native thread (#370) — the
WH_MOUSE_LLlow-level mouse hook no longer shares a thread, fixing missed outside-click detection.
v2.1.2
Released: 2026-07-17
Bug fixes
- Release resize-drag native memory on Windows (#365) — the Tao backend frees the native memory allocated for a resize drag when the drag ends.
v2.1.1
Released: 2026-07-17
Bug fixes
- Use an
@argfileon Windows for native-image compilation (#364) — avoids the Windows command-line length limit during GraalVM native builds.
v2.1.0
Released: 2026-07-17
Highlights
- Oracle GraalVM is now the recommended and default toolchain. Nucleus downloads and caches it automatically (
toolchain { }— Innovation by default,channel = GraalvmChannel.LTSfor LTS), and the default Tao backend builds native images on it. Oracle GraalVM (the edition formerly called Enterprise) unlocks the advanced native-image features Nucleus builds on — Profile-Guided Optimization,-O3, and ML-inferred profiles — that the Community editions do not provide. Only the deprecated AWT backend still requires a local BellSoft Liberica NIK install. Nosetup-graalvmstep;GRAALVM_HOMEstill takes precedence. - Compose Hot Reload works out of the box. Apply the
org.jetbrains.compose.hot-reloadplugin and runhotRun; Nucleus resolves the entry point fromnucleus.application.mainClass, with noComposeHotRunconfiguration.hotDevwithout-PclassNamebehaves likehotRun. Hot reload was not functional in 2.0. - Built-in Profile-Guided Optimization. Record a profile with
runWithPgoInstrument, commit it, and later native builds apply it automatically (--pgo). Oracle GraalVM only.
New features
- Compose Hot Reload on the Tao backend. The Hot Reload dev-tools sidecar now follows Tao-backed windows, not just AWT, via a reflective bridge driven by Tao window callbacks.
- Type-safe
marchandoptimization.marchis nowNativeImageMarch(NATIVE/COMPATIBILITY) with a per-platform default;optimizationisNativeImageOptimization(QUICK_BUILD,NONE,LEVEL_1..LEVEL_3,SIZE). NewallCharsetsandmlProfileInferencetoggles. - Oracle GraalVM on macOS. Native images on the default Tao backend build on Oracle GraalVM on macOS (arm64); the deprecated AWT backend still requires BellSoft Liberica NIK. Intel Macs fall back to Liberica NIK.
CompressionLevel.Ultra. New compression level that additionally recompresses the macOS DMG with LZMA (ULMO, ~20% smaller) and the Linux.debwithxz -9e(~25% smaller).Maximumno longer runs these post-processing steps.- Themed clear color and Linux CSD drop shadow. Tao hosts paint a themed clear color; Linux decorated windows replicate the GTK client-side-decoration drop shadow.
Improvements
- Smaller native images.
optimization = NativeImageOptimization.SIZE(-Os) plus automatic executable stripping on Linux and macOS reclaim tens of MB. --enable-native-access=ALL-UNNAMEDby default. Added to the default JVM args (run task and packaged launcher) so JNI native access on JDK 24+ (JEP 472) no longer warns.- Auto-download the GraalVM toolchain removes the manual NIK install previously required for native builds.
- Reachability metadata repository default bumped to
1.1.4(from0.10.6). - ProGuard default version bumped to
7.9.1.
Bug fixes
- Align Compose Hot Reload version with the Compose-bundled release and harden the Tao bridge — a version skew now stops the sidecar for that window instead of crashing the app.
- Drop the native shadow on macOS popup panels in the Tao backend.
v2.0.7
Released: 2026-07-14
Bug fixes
- Default
marchto compatibility for portable binaries (#344) — GraalVM native images now target a baseline CPU by default instead of the build machine, so distributed binaries run on older hardware.
v2.0.6
Released: 2026-07-14
Bug fixes
- Bundle
libjsoundin native image (#341) — Java Sound now works in GraalVM native-image builds. - Run Windows WinRT toasts on a dedicated MTA thread (#342) — fixes notification delivery on Windows.
v2.0.5
Released: 2026-07-14
Bug fixes
Dispatchers.Mainworks without a running Tao loop (#337) — coroutine main dispatch no longer requires an active Tao event loop.
v2.0.4
Released: 2026-07-13
Bug fixes
cleanupNativeLibsworks for Kotlin Multiplatform projects (#335).
v2.0.3
Released: 2026-07-13
New features
dockIconFollowsWindows(#334) — control dock-icon visibility for menu-bar / tray apps on macOS.
v2.0.2
Released: 2026-07-13
Bug fixes
- Apply
org.jetbrains.composealongside Nucleus (#331) — the Nucleus plugin no longer conflicts when the JetBrains Compose plugin is applied to the same project.
v2.0.1
Released: 2026-07-13
Bug fixes
- Pre-Tahoe traffic lights + macOS menu ProGuard rules (#310) — fixes window traffic-light buttons on macOS versions before Tahoe and adds the missing ProGuard rules for the macOS menu.
v2.0.0
Released: 2026-05-14
Highlights
- Plugin and namespace rename.
id("dev.nucleusframework"), Maven groupdev.nucleusframework, Kotlin rootdev.nucleusframework.*. See migrate from 1.x. nucleusApplication { }umbrella entry point. Single-instance lock, deep-link delivery, GraalVM init, AOT training, AutoLaunch and AUMID priming — all automatic.- Tao backend (
decorated-window-tao). No-AWT path driven by the Rusttaocrate. Wayland-native, multi-touch, pen pressure + tilt, native popups, drag-and-drop with diagnostics, embeddedNativeViewfor anyNSView/HWND/GtkWidget. DecoratedWindow/DecoratedDialogasNucleusApplicationScopeextensions — backend-agnostic dispatch,MaterialDecoratedWindow,JewelDecoratedWindowfollow the same shape. CompositionLocals bridged across the Tao scene boundary.- macOS Liquid Glass via
vtoolpatching.LC_BUILD_VERSIONset to SDK 26 on the launcher so any JDK can opt into Liquid Glass at runtime — no Xcode 26-built JDK needed. Layered.icondirectories supported on macOS 26+. - GraalVM Native Image: alpha. Static bytecode analyzer for reflection metadata,
CleanupGraalvmMetadataTask, per-library L1 metadata with classpath-conditional filtering. End-to-end packaging pipeline (DMG, NSIS, DEB) for native images.
Last updated on