Skip to content

Update Nucleus to 3.0.0 - #97

Merged
rocketraman merged 3 commits into
masterfrom
nucleus-3.x
Dec 2, 2026
Merged

rocketraman merged 3 commits into
masterfrom
nucleus-3.x

Conversation

@rocketraman

Copy link
Copy Markdown
Owner

Updates Nucleus from 2.5.18 to 3.0.0. On Linux, resizing the window by dragging an edge makes the content jump and stretch: Tao renders at stale sizes during the drag. Nucleus 3.0.0 fixes that (NucleusFramework/Nucleus#444).

What changes

Nucleus 3.0.0 (gradle/libs.versions.toml, build.gradle.kts, Main.kt)

  • Tao is the only backend in 3.0, so nucleusApplication no longer takes backend = and NucleusBackend is gone.
  • The Tao window module was renamed from decorated-window-tao to window-runtime. It stays a direct dependency because the app calls TitleBar.
  • Nucleus 3.0.0 requires the Compose plugin at 1.13, so Compose goes from 1.12.2 to 1.13.0. With the older plugin, Gradle upgrades the Compose libraries anyway, but the plugin injects a Hot Reload agent the Tao backend doesn't support.

Linux package version (build.gradle.kts). The build wrote a package.json before each Rpm/Deb packaging run to get the full pre-release version into the .rpm and .deb. That worked around two 2.5.18 behaviours, and 3.0.0 fixes both:

  • It rejected a - in an Rpm version. 3.0.0 validates only the x.y.z part.
  • It wrote package.json only if the file didn't exist. 3.0.0 rewrites it on every run, inside the task action. That runs after the workaround's doFirst, so the workaround's file would be overwritten with plain x.y.z.

The workaround is removed, including the step that deleted package.json before .msi/.dmg runs, which 3.0.0's rewrite makes unnecessary. The full version goes through linux.packageVersion, and .msi/.dmg keep plain x.y.z from the top-level packageVersion. The workaround's own fullVersion task input goes too: 3.0.0 declares packageVersion as an @Input of the packaging task, so a pre-release bump such as alpha.7 to alpha.8 still repackages.

Verification

  • ./gradlew check: 305 tests, 0 failures (counted from the result XML, after a forced re-run).
  • Resize: checked by hand on a KDE Wayland desktop at 4K with 1.3 scaling, the setup where the bug showed. No jumping or stretching. In a nested KWin session, the same scripted drag rendered 303 distinct window heights over 305px on 3.0.0, against 167 on 2.5.18, with the largest jump down from 5px to 2px.
  • Packaging: packageGraalvmRpm and packageGraalvmDeb ran. Both packages carry version 1.6.2~alpha.16.dirty, which rpm sorts after 1.6.1 and before 1.6.2. .msi and .dmg weren't built, since that needs Windows or macOS.

Reviewer notes

Move from the 3.0.0 dev build to the 3.0.0 release.

The release renames the Tao window module from decorated-window-tao to
window-runtime, so the dependency follows it. It is still declared
directly because the app calls TitleBar.

Nucleus 3.0.0 requires the Compose plugin at 1.13, so Compose goes from
1.12.2 to 1.13.0. With the older plugin, Gradle upgrades the Compose
libraries anyway, but the plugin injects a Hot Reload agent that the Tao
backend does not support.

Signed-off-by: Raman Gupta <rocketraman@gmail.com>
The .rpm and .deb get the full pre-release version, for example
1.6.2-alpha.7, through a package.json the build wrote before each
packaging run. That worked around two Nucleus 2.5.18 behaviours: it
wrote package.json only if the file did not exist yet, and it rejected
any '-' in an Rpm version.

Nucleus 3.0.0 fixes both. It now validates only the x.y.z part of a
pre-release version, and it rewrites package.json on every run. The
rewrite happens in the task action, after the build's doFirst, so the
workaround's file would be overwritten with the plain x.y.z.

The full version now goes through linux.packageVersion instead, and the
workaround is removed. The .msi and .dmg keep the plain x.y.z from the
top-level packageVersion. A packaging run produces an .rpm and a .deb
versioned 1.6.2~alpha.16.dirty, which rpm sorts after 1.6.1 and before
1.6.2.

Signed-off-by: Raman Gupta <rocketraman@gmail.com>
@rocketraman
rocketraman added this pull request to stack #99 December 2, 2026 16:40
@rocketraman
rocketraman merged commit 99fc1d9 into master Dec 2, 2026
@rocketraman
rocketraman deleted the nucleus-3.x branch December 2, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant