Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Copyright (c) 2020 <Source Code Author>
MIT License

Copyright (c) 2026 Elie Gambache

This license covers the code authored in this repository. Third-party components
redistributed here (including code derived from Apache-2.0 licensed projects) keep
their own licenses — see THIRD_PARTY_NOTICES.md.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
118 changes: 105 additions & 13 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,113 @@
# Third-Party Notices

This project redistributes the following third-party components.
Nucleus itself is distributed under the MIT license (see [`LICENSE`](LICENSE)). This file lists
the third-party components that Nucleus **redistributes** — as derived source, as vendored source,
or as binaries inside a published artifact — together with their licenses and where the full
license text lives.

## ANGLE (libEGL.dll, libGLESv2.dll)
Full license texts are in [`licenses/`](licenses/):

The Tao Windows backend (`decorated-window-tao`) ships the ANGLE runtime
libraries `libEGL.dll` and `libGLESv2.dll` to provide a Direct3D 11 render
path (OpenGL ES translated to D3D11, with a WARP software fallback for
RDP / VM / driverless environments).
| File | Applies to |
|------|------------|
| [`licenses/LICENSE-APACHE-2.0.txt`](licenses/LICENSE-APACHE-2.0.txt) | Gradle plugin (derived), `tao`, AccessKit crates (Apache option) |
| [`licenses/LICENSE-MIT-accesskit.txt`](licenses/LICENSE-MIT-accesskit.txt) | AccessKit crates (MIT option) |
| [`licenses/LICENSE-BSD-3-Clause-angle.txt`](licenses/LICENSE-BSD-3-Clause-angle.txt) | ANGLE runtime libraries and EGL/KHR headers |

Both artifacts that redistribute third-party code ship this file and `licenses/` inside their JAR
under `META-INF/` (`nucleus.decorated-window-tao` and the `dev.nucleusframework` Gradle plugin), as
required by Apache-2.0 §4(a).

---

## 1. Compose Multiplatform Gradle plugin — derived source (Apache-2.0)

The Nucleus Gradle plugin (`plugin-build/plugin`) is a **derivative work** of the JetBrains Compose
Multiplatform Gradle plugin (`org.jetbrains.compose.desktop.application`). 127 Kotlin files under
`plugin-build/plugin/src/` retain their original copyright header, for example:

```
Copyright 2020-2022 JetBrains s.r.o. and respective authors and developers.
Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
```

- Project: JetBrains Compose Multiplatform — https://github.com/JetBrains/compose-multiplatform
- License: Apache License, Version 2.0 — [`licenses/LICENSE-APACHE-2.0.txt`](licenses/LICENSE-APACHE-2.0.txt)
- Copyright 2020-2026 JetBrains s.r.o. and respective authors and developers.

Nucleus has substantially modified and extended these files (GraalVM native-image support,
electron-builder packaging backend, AOT cache generation, signing/notarization, auto-update
manifests, sandboxing). Modifications are © Elie Gambache and are MIT-licensed where they are
separable; the Apache-2.0 terms continue to apply to the derived files themselves.

## 2. tao — vendored source, compiled into a shipped binary (Apache-2.0)

`decorated-window-tao` vendors a patched fork of the Rust `tao` crate at
`decorated-window-tao/src/main/native/vendor/tao/`, redirected via `[patch.crates-io]`. It is
compiled into `libnucleus_tao.{dylib,so,dll}`, which ships inside the
`nucleus.decorated-window-tao` JAR.

- Project: tao — https://github.com/tauri-apps/tao
- Version: 0.35.0 (crates.io), plus the six local patches listed in
`decorated-window-tao/src/main/native/vendor/tao-patches/README.md`
- License: Apache License, Version 2.0 — upstream text kept at
`decorated-window-tao/src/main/native/vendor/tao/LICENSE`
- Copyright: Tauri Programme within The Commons Conservancy; The winit contributors

## 3. AccessKit — vendored source, compiled into a shipped binary (MIT OR Apache-2.0)

Three AccessKit crates are vendored and patched to project the accessibility tree to AT-SPI
(Linux) and UI Automation (Windows). Each divergence from upstream is documented in the crate's
`VENDORED.md`.

| Crate | Version | Path |
|-------|---------|------|
| `accesskit_windows` | 0.34.0 | `decorated-window-tao/src/main/native/vendor/accesskit_windows/` |
| `accesskit_unix` | 0.22.1 | `decorated-window-tao/src/main/native/vendor/accesskit_unix/` |
| `accesskit_atspi_common` | 0.19.1 | `decorated-window-tao/src/main/native/vendor/accesskit_atspi_common/` |

- Project: AccessKit — https://github.com/AccessKit/accesskit
- License: MIT OR Apache-2.0 (dual). Upstream texts are kept next to each vendored crate as
`LICENSE-MIT` and `LICENSE-APACHE`.
- Copyright: The AccessKit Authors

## 4. ANGLE (libEGL.dll, libGLESv2.dll) — shipped binary (BSD 3-Clause)

The Tao Windows backend (`decorated-window-tao`) ships the ANGLE runtime libraries `libEGL.dll` and
`libGLESv2.dll` to provide a Direct3D 11 render path (OpenGL ES translated to D3D11, with a WARP
software fallback for RDP / VM / driverless environments).

- Project: The ANGLE Project — https://chromium.googlesource.com/angle/angle
- License: BSD 3-Clause
- License: BSD 3-Clause — [`licenses/LICENSE-BSD-3-Clause-angle.txt`](licenses/LICENSE-BSD-3-Clause-angle.txt)
- Copyright 2018 The ANGLE Project Authors. All rights reserved.

The binaries are not committed to this repository; they are fetched at build
time from a pinned [Electron](https://github.com/electron/electron) release
(SHA-256 verified) by `decorated-window-tao/src/main/native/windows/fetch-angle.sh`.
The full BSD 3-Clause license text is reproduced in
`decorated-window-tao/src/main/native/vendor/angle-headers/LICENSE.angle`,
which also covers the vendored Khronos/ANGLE EGL headers used at build time.
The binaries are not committed to this repository; they are fetched at build time from a pinned
[Electron](https://github.com/electron/electron) release (SHA-256 verified) by
`decorated-window-tao/src/main/native/windows/fetch-angle.sh`. The same BSD 3-Clause text also
covers the vendored Khronos/ANGLE EGL headers used at build time
(`decorated-window-tao/src/main/native/vendor/angle-headers/LICENSE.angle`).

---

## Build-time tools (not redistributed)

These are resolved on the build machine and are **not** shipped inside any Nucleus artifact. They
are listed for transparency, not as a redistribution notice.

- **electron-builder** 26.15.5 (MIT) — packaging backend for 17 of the 18 target formats. The
plugin embeds only a pinned `package.json` / `package-lock.json` pair
(`plugin-build/plugin/src/main/resources/nucleus/electron-builder/`) and installs the tree with
`npm ci --ignore-scripts` into a build-local directory. See
`scripts/update-electron-builder-lock.sh`.
- **GraalVM** (GraalVM CE: GPLv2 with Classpath Exception; Oracle GraalVM: GFTC) — downloaded on
demand when `graalvm { isEnabled = true }`. Selecting `GraalvmDistribution.ORACLE` makes the
plugin emit a licensing warning, because the GFTC restricts charging a fee in connection with
redistributing the program.

## Transitive Rust crates

`libnucleus_tao` statically links the full Rust dependency tree of the `nucleus_tao` crate (`jni`,
`once_cell`, the `gtk-rs` stack, `zbus`, `windows`, `x11-dl`, …), which is permissively licensed
(predominantly MIT and Apache-2.0). The authoritative, version-exact list is
`decorated-window-tao/src/main/native/Cargo.lock`; regenerate a per-crate license inventory with
`cargo license` or `cargo about` from `decorated-window-tao/src/main/native/`. Sections 2 and 3
above cover the crates Nucleus has forked and therefore redistributes as source.
13 changes: 13 additions & 0 deletions decorated-window-tao/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ nucleusNative {
// native image; it consumes the compiled test classes through this
// configuration (test source sets are not published otherwise).

// Apache-2.0 §4(a) / BSD-3-Clause: this JAR ships libnucleus_tao (which statically links the
// vendored tao and AccessKit forks) and, on Windows, the ANGLE DLLs — so the attribution notices
// and license texts must travel with it. Copied from the repo root so there is a single copy to
// maintain — see THIRD_PARTY_NOTICES.md §2–4.
tasks.named<Jar>("jar") {
metaInf {
from(rootProject.file("THIRD_PARTY_NOTICES.md"))
from(rootProject.file("licenses")) {
into("licenses")
}
}
}

val taoTestClassesJar by tasks.registering(Jar::class) {
archiveClassifier.set("test-classes")
from(sourceSets.test.get().output)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Loading
Loading