You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by lr...@apache.org on 2026/09/10 05:48:26 UTC

(incubator-toree) branch master updated (f39dd1f2 -> 59686bb1)

This is an automated email from the ASF dual-hosted git repository.

lresende pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-toree.git


    from f39dd1f2 [INFRA] Set up default rulesets for default and release branches (#259)
     new 7bebc2a5 Fix LICENSE and NOTICE to match bundled dependencies
     new 59686bb1 Document how to audit the bundled dependency licenses

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 NOTICE                                             |   2 +-
 etc/legal/LICENSE_extras                           |  77 +++--
 etc/legal/NOTICE_extras                            | 163 +++++++--
 etc/legal/README.md                                | 367 +++++++++++++++++++++
 .../{LICENSE-jeromq.txt => LICENSE-MPL-2.0.txt}    |   2 +-
 etc/legal/licenses/LICENSE-argonaut-shapeless.txt  |  27 ++
 etc/legal/licenses/LICENSE-argonaut.txt            |   2 +-
 etc/legal/licenses/LICENSE-clapper.txt             |   4 +-
 etc/legal/licenses/LICENSE-jnacl.txt               |   2 +-
 etc/legal/licenses/LICENSE-jsoup.txt               |  21 ++
 etc/legal/licenses/LICENSE-scala.txt               |  11 -
 etc/tools/check-licenses                           |  21 ++
 project/Dependencies.scala                         |  10 +-
 13 files changed, 624 insertions(+), 85 deletions(-)
 create mode 100644 etc/legal/README.md
 rename etc/legal/licenses/{LICENSE-jeromq.txt => LICENSE-MPL-2.0.txt} (99%)
 create mode 100644 etc/legal/licenses/LICENSE-argonaut-shapeless.txt
 create mode 100644 etc/legal/licenses/LICENSE-jsoup.txt
 delete mode 100644 etc/legal/licenses/LICENSE-scala.txt


(incubator-toree) 02/02: Document how to audit the bundled dependency licenses

Posted by lr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lresende pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-toree.git

commit 59686bb19e5b1f7932293e1c2116f43be753bcad
Author: Luciano Resende <lr...@apple.com>
AuthorDate: Wed Sep 9 08:41:55 2026 +0200

    Document how to audit the bundled dependency licenses
    
    These files have needed correcting six times since October 2025, each pass
    finding entries that were stale, missing, or wrong. The cause is structural:
    about three quarters of what the assembly bundles arrives transitively, and
    only one in six commits touching project/Dependencies.scala also updated
    etc/legal. A dependency bump changes what ships without showing it in the
    diff, and nothing in CI checks the result.
    
    Add etc/legal/README.md covering what the files are, how the Makefile and
    build.sbt assemble them into the distribution, and how to re-audit before a
    release. It records the traps that made the previous passes miss things:
    
    - the resolved classpath is not the jar, since withIncludeScala(false)
      drops scala-library and scala-reflect at packaging time
    - the jar is not the classpath either, since code can be absorbed into
      another jar or relocated into a shaded package
    - a declaration in Dependencies.scala that nothing references never
      reaches the build
    - an import does not mean Toree ships it, because Spark is "provided"
    - the declared version is not the resolved version when eviction applies
    - NOTICE content must be reproduced, not linked
    
    Absorbed and relocated code need two different searches, and the procedure
    now gives both. Searching only for Maven metadata finds two of the six
    shaded artifacts; the other four keep no metadata at all and are visible
    only as a package path. That is how they went unlisted.
    
    A "Deliberately not listed" section records what has been added in error
    before, and why each is absent, so it is not re-added a third time.
    
    Add a purpose header to etc/tools/check-licenses. Despite its name it runs
    RAT over source headers and validates none of the above; a passing run has
    been easy to mistake for coverage that does not exist.
---
 etc/legal/README.md      | 367 +++++++++++++++++++++++++++++++++++++++++++++++
 etc/tools/check-licenses |  21 +++
 2 files changed, 388 insertions(+)

diff --git a/etc/legal/README.md b/etc/legal/README.md
new file mode 100644
index 00000000..6b9abeeb
--- /dev/null
+++ b/etc/legal/README.md
@@ -0,0 +1,367 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+# Legal files for the binary distribution
+
+The root `LICENSE` and `NOTICE` cover Toree's own source. The binary
+distribution additionally bundles third-party code inside the assembly jar,
+and ASF policy requires that code to be accounted for in the `LICENSE` and
+`NOTICE` that ship alongside it. That accounting lives here.
+
+## Layout
+
+| Path             | Contents                                                                     |
+| ---------------- | ---------------------------------------------------------------------------- |
+| `LICENSE_extras` | One line per bundled artifact, grouped by license, pointing at its license text |
+| `NOTICE_extras`  | An index of bundled artifacts that ship a `NOTICE`, then those notices verbatim |
+| `licenses/`      | Full license texts for dependencies whose license is not Apache-2.0            |
+
+`licenses/` exists because a link is not sufficient for the non-Apache
+licenses: BSD and MIT require the copyright notice and disclaimer to travel
+with the binary, and jeromq's MPL-2.0 is an ASF Category B license, which
+requires the license text to be included. Every file in `licenses/` must be
+referenced from a `LICENSE_extras` entry (`... and licenses/LICENSE-foo.txt`);
+an unreferenced file means either a stale entry or a missing reference.
+
+## How these files reach the distribution
+
+```mermaid
+flowchart TD
+    A["LICENSE (root)"] --> C["dist/toree-legal/LICENSE"]
+    B["etc/legal/LICENSE_extras"] --> C
+    D["NOTICE (root)"] --> E["dist/toree-legal/NOTICE"]
+    F["etc/legal/NOTICE_extras"] --> E
+    G["etc/legal/licenses/"] --> H["dist/toree-legal/licenses/"]
+    C --> I["dist/toree/"]
+    E --> I
+    H --> I
+    C -.-> J["assembly jar<br/>(unmanaged resource)"]
+    E -.-> J
+    H -.-> J
+```
+
+The `*_extras` files are concatenated onto the root `LICENSE` and `NOTICE` by
+`Makefile` (targets `dist/toree-legal/LICENSE` and `dist/toree-legal/NOTICE`),
+and `licenses/` is copied alongside them. `build.sbt` also adds
+`dist/toree-legal` as an unmanaged resource directory, so whatever is in that
+directory at assembly time is embedded in the jar as well.
+
+The dotted edges matter: because `dist/toree-legal` is generated, a bare
+`sbt assembly` on a clean tree embeds *nothing*. Only `make build` (or any
+target depending on `dist/toree-legal`) produces a jar with the legal files
+inside. Do not read an assembly jar built by `sbt` alone and conclude the
+legal files are missing.
+
+## Why these files drift
+
+These files have needed correcting six times between October 2025 and March
+2026, each time finding entries that were stale, missing, or wrong. That is a
+structural problem rather than carelessness, and understanding the cause is
+what makes the audit below tractable.
+
+Most of what ships is never named in the build. Of the artifacts in the
+assembly jar, roughly three quarters arrive transitively — nobody adds
+`shapeless`, `jansi`, `spring-jcl` or the five `asm` jars to
+`libraryDependencies`; they come in behind `coursier`, `classutil` and
+`play-json`. A dependency bump therefore changes the bundled set in ways the
+diff does not show.
+
+The history bears this out: of the commits that changed
+`project/Dependencies.scala`, only about one in six also updated
+`etc/legal/`. Each of the others was a silent opportunity for these files to
+fall out of date, and the periodic "fix the licenses" commits are that cost
+being paid down in batches.
+
+Two consequences for anyone touching dependencies:
+
+- Changing a version in `Dependencies.scala` is not sufficient. Re-run the
+  audit, because the transitive set may have shifted underneath it.
+- Do not treat a passing build as evidence that the legal files are correct.
+  Nothing in CI checks them today.
+
+## Auditing before a release
+
+The goal is that `LICENSE_extras` lists exactly what the assembly jar
+bundles — no more, no less. Two failure directions matter equally: an entry
+for something not shipped is a false claim, and a shipped artifact with no
+entry is a policy violation.
+
+Start from the built jar, not the build definition:
+
+```bash
+make build
+unzip -l target/scala-2.12/toree-assembly-*.jar
+```
+
+Cross-check against the resolved classpath:
+
+```bash
+sbt "show assembly/fullClasspath"
+```
+
+Then reconcile the two lists against `LICENSE_extras`. The traps below are
+the reason those two commands disagree, and why neither alone is enough.
+
+### The classpath is not the jar
+
+`build.sbt` sets `assembly / assemblyOption ~= { _.withIncludeScala(false) }`,
+which drops the Scala distribution jars at *packaging* time. They therefore
+appear on `assembly/fullClasspath` but are not in the jar, and must not be
+listed. Toree gets Scala from Spark at runtime.
+
+The exclusion is a fixed list of artifact names, not a groupId prefix, so it
+is easy to under-estimate. Read out of `sbtassembly/Assembly$.class` in the
+plugin jar, it covers all eight of:
+
+```
+scala-actors    scala-compiler   scala-continuations   scala-library
+scala-reflect   scala-swing      scala-parser-combinators   scala-xml
+```
+
+`scala-xml` is the one that catches people. Unlike the rest it is a genuine
+third-party transitive dependency — `coursier-core` declares it at compile
+scope — so it resolves onto the classpath, looks entirely legitimate against
+the dependency graph, and was listed here until March 2026 despite never
+shipping. Check the jar, not the graph:
+
+```bash
+unzip -l target/scala-2.12/toree-assembly-*.jar | grep -c 'scala/xml'
+```
+
+Note that `scala-collection-compat` and `scala-java8-compat` publish classes
+under `scala/collection/compat` and `scala/concurrent/java8`. Those *are*
+bundled and *are* separate artifacts with their own entries — finding classes
+under `scala/` in the jar does not mean the Scala distribution leaked in.
+
+### The jar is not the classpath either
+
+Some dependencies are shaded into another artifact and never appear as a jar
+of their own. They are absent from every classpath while their classes ship
+in the assembly, so a dependency list will never reveal them — the only
+reliable trace is the metadata the containing jar carries about what it
+absorbed.
+
+There are two ways this happens, and they need two different searches. Running
+only the first will miss most of it.
+
+**Absorbed with its metadata intact.** Sweep every bundled jar for Maven
+coordinates naming an artifact other than itself:
+
+```bash
+for j in $(sbt -batch "show assembly/fullClasspath" \
+             | grep -o '/[^ ,]*\.jar' | sort -u); do
+  unzip -l "$j" | grep -o 'META-INF/maven/[^/]*/[^/]*/pom.properties' \
+    | sed "s|^|$(basename $j)  |"
+done
+```
+
+Any line whose trailing coordinate does not match the jar's own name is an
+absorbed dependency needing its own entry.
+
+**Relocated, with nothing left.** Shading rewrites the package and discards the
+metadata, so the search above finds nothing at all. The package path is the
+only remaining trace:
+
+```bash
+unzip -l target/scala-2.12/toree-assembly-*.jar \
+  | grep -oE '[a-z0-9/]*shaded?[a-z0-9/]*/' | sort -u
+```
+
+This is the search that matters most, because relocated code is invisible
+everywhere else at once — not in the dependency tree, not on the classpath, not
+in any metadata listing — while it ships and its licence still binds. It is
+also the one that was missed: four of the six entries below were added only in
+March 2026, after the first scan looked for metadata alone and found two.
+
+Map each hit back to a project. A relocation prefix is normally the shading
+project's own package plus `shaded`, so what follows is the original package:
+`coursier/core/shaded/fastparse` is `com.lihaoyi:fastparse`. The package is not
+always named after the artifact — `dev.dirs:directories` ships as
+`coursier/cache/shaded/dirs/dev/dirs` — so match on the group as well.
+
+Six artifacts reach the distribution this way today:
+
+- **`org.fusesource.hawtjni:hawtjni-runtime:1.17`**, inside `jansi` 1.18.
+  Its classes ship at `org/fusesource/hawtjni/runtime/`, and the version comes
+  from `META-INF/maven/org.fusesource.hawtjni/hawtjni-runtime/pom.properties`
+  in the jansi jar, not from any build file. Its `license.txt` contains the
+  Apache-2.0 text and the EPL-1.0 text one after the other, hence the
+  `(Apache-2.0 OR EPL-1.0)` annotation on the entry. EPL-1.0 alone would be
+  ASF Category B, but because the grant is a disjunction Toree takes it under
+  Apache-2.0, which is why the entry sits in the Apache section with no
+  bundled license copy.
+
+- **`org.jsoup:jsoup:1.13.1`**, inside `coursier-util` 2.0.0, relocated to
+  `coursier/util/shaded/org/jsoup/`. jsoup is MIT, so the notice has to travel
+  with the binary; `licenses/LICENSE-jsoup.txt` is that text, taken from the
+  `META-INF/LICENSE` that coursier ships inside its own jar for exactly this
+  reason. This one went unlisted until March 2026.
+
+- **`dev.dirs:directories`**, inside `coursier-cache` 2.0.0, relocated to
+  `coursier/cache/shaded/dirs/dev/dirs/`. It is **MPL-2.0, ASF Category B**,
+  so the licence text must be bundled rather than linked — it shares
+  `licenses/LICENSE-MPL-2.0.txt` with jeromq, the two texts being identical.
+  Its version cannot be pinned: `coursier-cache`'s published pom omits the
+  dependency entirely, which is normal for a shaded one, so the entry records
+  the container version instead of guessing.
+
+- **`com.lihaoyi:fastparse_2.12:2.3.0`**, **`geny_2.12:0.6.0`** and
+  **`sourcecode_2.12:0.2.1`**, inside `coursier-core` 2.0.0 under
+  `coursier/core/shaded/`. All MIT. Versions come from coursier's own
+  `project/Deps.scala` at tag `v2.0.0`, and from `fastparse`'s pom for the two
+  it pulls in.
+
+The last four were found only when the search for relocated packages was added.
+The metadata sweep alone reports them as absent, which is why both searches
+belong in the procedure.
+
+Pay particular attention to dependencies that vendor native code or bundle
+their own dependencies — those are the ones that shade.
+
+### `Dependencies.scala` is not the build
+
+An entry in `project/Dependencies.scala` that no project adds to
+`libraryDependencies` never reaches the classpath or the jar. Declaring a
+dependency is not using it. Always audit against the artifacts, never against
+the dependency list.
+
+### An import does not mean Toree ships it
+
+Spark is a `provided` dependency, so everything Spark brings with it is on the
+*compile* classpath but excluded from the assembly. Toree code can therefore
+import, compile and run against a library it does not distribute, and must not
+list.
+
+Apache Ivy is the case to know. `IvyDependencyDownloader.scala` imports
+`org.apache.ivy.*` throughout, which makes it look like a bundled dependency,
+and `Dependencies.scala` even declares a version for it — but nothing adds
+that declaration to `libraryDependencies`. The classes come transitively from
+`spark-core`, and Spark supplies them again at runtime. Ivy is not in the
+assembly jar and does not belong in `LICENSE_extras`.
+
+Reading imports, or `Compile / dependencyClasspath`, will mislead you here.
+Only `assembly / fullClasspath` and the jar itself reflect what ships.
+
+### The declared version is not the resolved version
+
+Even for dependencies that are used, the version in `Dependencies.scala` is a
+request, not an outcome. Coursier resolves conflicts by eviction, so a
+transitive constraint can raise a version without any change to the build
+definition.
+
+This is live today: `Dependencies.scala` asks for `slf4j-api` 2.0.6, but
+`pekko-slf4j` 1.1.5 requires 2.0.16, so 2.0.16 is what ships. `LICENSE_extras`
+must record 2.0.16. Take every version from the resolved artifact:
+
+```bash
+sbt "show assembly/fullClasspath"    # jar filenames carry the real versions
+```
+
+A version that looks wrong against `Dependencies.scala` may well be right.
+Check for an eviction before "correcting" it.
+
+### Links must be pinned to tags
+
+A link to `master`/`main` describes whatever upstream looks like today, not
+what is bundled. This has produced real errors: a Jackson link that resolved
+to the 3.x license while 2.14.2 was bundled, and scala module notices copied
+from a later branch that misstated the copyright years and attributed the
+work to the wrong organization.
+
+Pin every link to the tag matching the bundled version. Tag naming is not
+guessable and varies per project — `v14.0.1`, `rel/2.5.1`, `ASM_7_1`,
+`jackson-core-2.14.2`, `release-4.9.3`, `2.9.4`. Look the tag up rather than
+constructing it, and confirm the file exists at that tag; `guava` v14.0.1,
+for instance, has `COPYING` and no `LICENSE`.
+
+Two links are deliberately left on `master` because upstream offers no usable
+tag. Do not "fix" them without checking:
+
+- `bmc/classutil` — no `release-1.5.1` tag exists; upstream tags stop at
+  `release-1.5.0` although 1.5.1 was published to Maven Central.
+- `jupyter/jvm-repr` — the `0.1.0` tag predates the addition of the `LICENSE`
+  file, so a pinned link would 404.
+- `com-lihaoyi/fastparse` — the `2.3.0` tag carries no `LICENSE` at the root;
+  the file exists only on the default branch.
+- `dirs-dev/directories-jvm` — the shaded version cannot be determined, so
+  there is no tag to pin to.
+
+### NOTICE content is reproduced, not referenced
+
+A `NOTICE` must carry the required notices themselves; a link is not
+sufficient. The index at the top of `NOTICE_extras` records provenance, but
+every bundled artifact that ships a `META-INF/NOTICE` must also have its text
+reproduced verbatim below.
+
+To find which artifacts require this, inspect each bundled jar for
+`META-INF/NOTICE*`. Copy the bytes from the jar rather than retyping them,
+and prefer the jar's copy over the upstream repository's when they differ —
+the jar is what ships.
+
+Copying by hand has corrupted these files before: `licenses/LICENSE-clapper.txt`
+still contains a line wrap that split "You" across two lines, introduced when
+the text was replaced by hand after classutil relicensed from BSD-3 to
+Apache-2.0. Extract with `unzip -p` or `curl`, and diff the result against
+what you commit.
+
+Identical and overlapping notices are deduplicated rather than repeated: the
+three Jackson artifacts ship byte-identical text and share one block, and
+`pekko-actor`'s notice is a superset of `pekko-slf4j`'s, so the longer one
+covers both.
+
+Some artifacts ship no `NOTICE` in the jar but publish one at their upstream
+tag; those are reproduced from the tag. Others have no notice anywhere and
+correctly have no block at all.
+
+## Deliberately not listed
+
+These look like they belong in `LICENSE_extras` and do not. Each has been
+added in error at least once. Confirm against the built jar before adding any
+of them back.
+
+**Apache Ivy.** `IvyDependencyDownloader.scala` imports `org.apache.ivy`
+throughout, so Toree plainly uses it — but the classes arrive transitively
+from `spark-core`, which is `provided`. Ivy is on the compile classpath,
+absent from the assembly jar, and supplied by Spark at runtime. It was listed
+in both `LICENSE_extras` and `NOTICE_extras` from February 2026 until this
+was corrected. `project/Dependencies.scala` carries a note in place of the
+declaration it used to hold.
+
+**scala-library and scala-reflect.** Excluded from the assembly by
+`withIncludeScala(false)`; Spark provides Scala at runtime. `scala-reflect`
+was listed, together with a `licenses/LICENSE-scala.txt`, until March 2026.
+Both are on `assembly / fullClasspath`, which is what makes this one easy to
+get wrong.
+
+**Anything else Spark provides.** The same reasoning covers every `provided`
+dependency: on the compile classpath, not in the jar, not ours to license.
+
+## Known limitations
+
+`LICENSE_extras` is written for the Scala 2.12 build, which is what `Makefile`
+releases by default (`SCALA_VERSION?=2.12`). The 2.13 build resolves a
+different set: every cross-versioned coordinate changes, and `macro-compat`
+and `scala-java8-compat` are not bundled at all. Publishing a 2.13 binary
+distribution requires reworking these files to be version-aware.
+
+## Related tooling
+
+`etc/tools/check-licenses` runs Apache RAT to verify that *source files* carry
+ASF headers. It does not inspect bundled dependencies and does not validate
+anything described in this document. The audit above is currently manual.
diff --git a/etc/tools/check-licenses b/etc/tools/check-licenses
index 679be6b1..4e42483e 100755
--- a/etc/tools/check-licenses
+++ b/etc/tools/check-licenses
@@ -17,6 +17,27 @@
 # limitations under the License.
 #
 
+#
+# Verifies that source files in this repository carry an ASF license header,
+# by running Apache RAT (Release Audit Tool) over the working tree.
+#
+# Scope: SOURCE HEADERS ONLY. Despite the name, this script does not look at
+# third-party dependencies, and passing it says nothing about whether the
+# LICENSE and NOTICE shipped with the binary distribution accurately describe
+# what the assembly jar bundles. That is a separate concern, documented in
+# etc/legal/README.md, and is currently a manual audit.
+#
+# Usage:   etc/tools/check-licenses
+#
+# Files exempt from the header requirement are listed in
+# etc/tools/.rat-excludes. Add an entry there for generated files and for
+# formats that cannot carry comments, not to silence a fixable warning.
+#
+# The RAT jar is downloaded on first run and cached in etc/tools/.
+#
+# Output:  target/rat-results.txt
+# Exit:    0 if every file has a header, 1 if any file lacks one or RAT failed.
+#
 
 acquire_rat_jar () {
 


(incubator-toree) 01/02: Fix LICENSE and NOTICE to match bundled dependencies

Posted by lr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lresende pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-toree.git

commit 7bebc2a57a4dc5b2a9d7ae3bc0e00b37d7a31d75
Author: Luciano Resende <lr...@apple.com>
AuthorDate: Wed Sep 9 08:41:50 2026 +0200

    Fix LICENSE and NOTICE to match bundled dependencies
    
    Align LICENSE_extras and NOTICE_extras with the dependency set that actually
    ships in the assembly jar, verified against the built jar rather than the
    dependency list or the resolved classpath. All three disagree, and each was
    wrong in a different direction.
    
    Removed, having been listed but not bundled:
    - commons-logging, stale since spring-core moved from 4.1.1 to 5.2.2, where
      spring-jcl replaced it
    - joda-time, no longer reachable through play-json 2.9.4, including its
      notice text
    - scala-reflect and scala-xml, both excluded from the assembly by
      withIncludeScala(false), along with scala-reflect's now unreferenced
      licenses/LICENSE-scala.txt. That option excludes a fixed list of eight
      artifact names, not just the Scala runtime: scala-xml is an ordinary
      third-party transitive dependency of coursier-core, so it resolves onto the
      classpath and looks legitimate against the dependency graph while never
      reaching the jar.
    - ivy. It reaches the compile classpath transitively from spark-core, which is
      "provided", so Spark supplies it at runtime and Toree does not ship it.
      IvyDependencyDownloader imports org.apache.ivy throughout, which is what made
      it look bundled. project/Dependencies.scala declared a version that nothing
      referenced; that declaration is replaced by a note.
    
    Added, having been bundled but unlisted:
    - jackson-datatype-jdk8, jackson-datatype-jsr310, argonaut-shapeless,
      coursier-core, coursier-util, spring-jcl, asm-analysis
    - six dependencies that ship inside another jar rather than as a jar of their
      own: hawtjni-runtime (in jansi), jsoup and dev.dirs:directories (in
      coursier-util and coursier-cache), and fastparse, geny and sourcecode (in
      coursier-core)
    
    Only hawtjni-runtime and jsoup keep Maven metadata inside their container. The
    other four are relocated into a shaded package, which discards the coordinates
    entirely: they appear in no dependency tree, on no classpath and in no metadata
    listing, while their code ships and their licences still bind. Searching for
    the relocated package paths is the only way to find them.
    
    dev.dirs:directories is MPL-2.0, an ASF Category B licence, so its text must be
    bundled rather than linked. It is identical to the text jeromq already
    required, so licenses/LICENSE-jeromq.txt is renamed to LICENSE-MPL-2.0.txt and
    both entries point at it. Its version cannot be pinned, because coursier-cache
    omits the dependency from its published pom as is normal for a shaded one, so
    the entry records the container version rather than guessing.
    
    Corrected:
    - slf4j-api from 1.7.32 to 2.0.16, and to 2.0.16 in Dependencies.scala, which
      asked for 2.0.6; pekko-slf4j 1.1.5 requires 2.0.16 and evicts it, so 2.0.16
      is what shipped. The resolved assembly is unchanged by this.
    - groupIds: asm -> org.ow2.asm, com.milessabin -> com.chuusai,
      com.neilalexander -> eu.neilalexander, io.github.alexarchambault ->
      io.github.alexarchambault.windows-ansi
    - missing versions for jansi and hawtjni-runtime, and the missing URL for
      play-functional
    
    Every upstream reference is pinned to the tag matching the bundled version.
    Branch links describe whatever upstream looks like today: the jackson-core link
    resolved to the 3.x licence while 2.14.2 ships. Four links remain on a branch
    because no usable tag exists, each noted in etc/legal/README.md.
    
    argonaut and argonaut-shapeless are distinct artifacts and both are bundled, so
    both are listed, each pointing at its own licence text. LICENSE-argonaut.txt
    keeps the argonaut 6.2.4 notice; the argonaut-shapeless notice moves to its own
    file.
    
    NOTICE_extras now reproduces every bundled notice rather than linking some of
    them, as ASF policy requires. It gains commons-exec, spring-core and spring-jcl,
    whose jars ship a NOTICE that was not reproduced, and Apache Pekko and Jackson,
    which were referenced by URL only. One Pekko block covers both pekko-actor and
    pekko-slf4j, whose notice it contains, and one Jackson block covers all three
    artifacts, whose notices are byte-identical.
    
    The scala module notices were all copied from the scala-xml 2.x branch, which
    misstated the copyright years and attributed the work to Akka. They now quote
    the NOTICE published at the bundled version, and link to that tag rather than
    to the default branch. scala-xml is dropped entirely, being absent from the
    jar; its notice block had in any case been copied from the 2.x line, since
    1.3.0 publishes no NOTICE at all. The jackson-datatype-jdk8 and
    jackson-datatype-jsr310 entries are dropped for that second reason.
    
    Also:
    - jeromq, MPL-2.0 and ASF Category B, now points at its bundled licence copy
      the way every other non-Apache entry does
    - LICENSE-clapper.txt had a line wrap splitting "You" across two lines,
      introduced when the text was replaced by hand after classutil relicensed
    - LICENSE-argonaut.txt and LICENSE-jnacl.txt regain their trailing newline,
      making them byte-identical to upstream
    - the root NOTICE drops the ASF template brackets around the copyright year
---
 NOTICE                                             |   2 +-
 etc/legal/LICENSE_extras                           |  77 +++++-----
 etc/legal/NOTICE_extras                            | 163 +++++++++++++++++----
 .../{LICENSE-jeromq.txt => LICENSE-MPL-2.0.txt}    |   2 +-
 etc/legal/licenses/LICENSE-argonaut-shapeless.txt  |  27 ++++
 etc/legal/licenses/LICENSE-argonaut.txt            |   2 +-
 etc/legal/licenses/LICENSE-clapper.txt             |   4 +-
 etc/legal/licenses/LICENSE-jnacl.txt               |   2 +-
 etc/legal/licenses/LICENSE-jsoup.txt               |  21 +++
 etc/legal/licenses/LICENSE-scala.txt               |  11 --
 project/Dependencies.scala                         |  10 +-
 11 files changed, 236 insertions(+), 85 deletions(-)

diff --git a/NOTICE b/NOTICE
index 9447a088..05ee998a 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Toree (Incubating)
-Copyright [2016-2026] The Apache Software Foundation
+Copyright 2016-2026 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/)
diff --git a/etc/legal/LICENSE_extras b/etc/legal/LICENSE_extras
index 7b3b96f5..1483ee44 100644
--- a/etc/legal/LICENSE_extras
+++ b/etc/legal/LICENSE_extras
@@ -10,55 +10,62 @@ licenses.
 Apache License 2.0
 ========================================================================
 
-   com.google.guava:guava:14.0.1 -> https://github.com/google/guava/blob/master/LICENSE
-   org.apache.ivy:ivy:2.5.1 -> https://github.com/apache/ant-ivy/blob/master/LICENSE
-   org.apache.pekko:pekko-actor_2.12:1.1.5 -> https://github.com/apache/pekko/blob/main/legal/pekko-actor-jar-license.txt
-   org.apache.pekko:pekko-slf4j_2.12:1.1.5 -> https://github.com/apache/pekko/blob/main/legal/StandardLicense.txt
+   com.google.guava:guava:14.0.1 -> https://github.com/google/guava/blob/v14.0.1/COPYING
+   org.apache.pekko:pekko-actor_2.12:1.1.5 -> https://github.com/apache/pekko/blob/v1.1.5/legal/pekko-actor-jar-license.txt
+   org.apache.pekko:pekko-slf4j_2.12:1.1.5 -> https://github.com/apache/pekko/blob/v1.1.5/legal/StandardLicense.txt
    org.clapper:classutil_2.12:1.5.1 -> https://github.com/bmc/classutil/blob/master/LICENSE.md and licenses/LICENSE-clapper.txt
-   org.clapper:grizzled-scala_2.12:4.9.3 -> https://github.com/bmc/grizzled-scala/blob/master/LICENSE.md and licenses/LICENSE-clapper.txt
-   com.fasterxml.jackson.core:jackson-core:2.14.2 -> https://github.com/FasterXML/jackson-core/blob/3.x/LICENSE
-   com.fasterxml.jackson.core:jackson-databind:2.14.2 -> https://github.com/FasterXML/jackson-databind/blob/2.x/LICENSE
-   com.fasterxml.jackson.core:jackson-annotations:2.14.2 -> https://github.com/FasterXML/jackson-annotations/blob/2.x/LICENSE
-   com.typesafe:config:1.4.3 -> https://github.com/lightbend/config/blob/master/LICENSE-2.0.txt
-   com.typesafe.play:play-json_2.12:2.9.4 -> https://github.com/playframework/play-json/blob/master/LICENSE
-   com.typesafe.play:play-functional_2.12:2.9.4
-   commons-logging:commons-logging:1.1.3 -> https://github.com/apache/commons-logging/blob/trunk/LICENSE.txt
-   io.get-coursier:coursier-cache_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/master/LICENSE
-   io.get-coursier:coursier_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/master/LICENSE
-   io.github.alexarchambault:windows-ansi -> https://github.com/alexarchambault/windows-ansi/blob/master/LICENSE
-   joda-time:joda-time:2.10.1 -> https://github.com/JodaOrg/joda-time/blob/master/LICENSE.txt
-   com.milessabin:shapeless_2.12 -> https://github.com/milessabin/shapeless/blob/main/LICENSE
-   org.fusesource.jansi:jansi -> https://github.com/fusesource/jansi/blob/master/license.txt
-   org.fusesource.hawtjni:hawtjni-runtime (Apache-2.0 OR EPL-1.0) -> https://github.com/fusesource/hawtjni/blob/master/license.txt
-   org.springframework:spring-core:5.2.2.RELEASE -> https://github.com/spring-projects/spring-framework/blob/main/LICENSE.txt
-   org.apache.commons:commons-exec:1.3 -> https://github.com/apache/commons-exec/blob/trunk/LICENSE.txt
-   org.scala-lang.modules:scala-collection-compat_2.12:2.0.0 -> https://github.com/scala/scala-collection-compat/blob/main/LICENSE
-   org.scala-lang.modules:scala-java8-compat_2.12:1.0.2 -> https://github.com/scala/scala-java8-compat/blob/master/LICENSE
-   org.scala-lang.modules:scala-xml_2.12:1.3.0 -> https://github.com/scala/scala-xml/blob/master/LICENSE.md
-   org.scala-lang:scala-reflect:2.12.17 -> http://www.scala-lang.org/license.html and licenses/LICENSE-scala.txt
-   org.typelevel:macro-compat_2.12:1.1.1 -> https://github.com/milessabin/macro-compat/blob/master/LICENSE
+   org.clapper:grizzled-scala_2.12:4.9.3 -> https://github.com/bmc/grizzled-scala/blob/release-4.9.3/LICENSE.md and licenses/LICENSE-clapper.txt
+   com.fasterxml.jackson.core:jackson-core:2.14.2 -> https://github.com/FasterXML/jackson-core/blob/jackson-core-2.14.2/LICENSE
+   com.fasterxml.jackson.core:jackson-databind:2.14.2 -> https://github.com/FasterXML/jackson-databind/blob/jackson-databind-2.14.2/LICENSE
+   com.fasterxml.jackson.core:jackson-annotations:2.14.2 -> https://github.com/FasterXML/jackson-annotations/blob/jackson-annotations-2.14.2/LICENSE
+   com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4 -> https://github.com/FasterXML/jackson-modules-java8/blob/jackson-modules-java8-2.11.4/LICENSE
+   com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4 -> https://github.com/FasterXML/jackson-modules-java8/blob/jackson-modules-java8-2.11.4/LICENSE
+   com.typesafe:config:1.4.3 -> https://github.com/lightbend/config/blob/v1.4.3/LICENSE-2.0.txt
+   com.typesafe.play:play-json_2.12:2.9.4 -> https://github.com/playframework/play-json/blob/2.9.4/LICENSE
+   com.typesafe.play:play-functional_2.12:2.9.4 -> https://github.com/playframework/play-json/blob/2.9.4/LICENSE
+   io.get-coursier:coursier-cache_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/v2.0.0/LICENSE
+   io.get-coursier:coursier_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/v2.0.0/LICENSE
+   io.get-coursier:coursier-core_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/v2.0.0/LICENSE
+   io.get-coursier:coursier-util_2.12:2.0.0 -> https://github.com/coursier/coursier/blob/v2.0.0/LICENSE
+   io.github.alexarchambault.windows-ansi:windows-ansi:0.0.3 -> https://github.com/alexarchambault/windows-ansi/blob/v0.0.3/LICENSE
+   com.chuusai:shapeless_2.12:2.3.3 -> https://github.com/milessabin/shapeless/blob/v2.3.3/LICENSE
+   org.fusesource.jansi:jansi:1.18 -> https://github.com/fusesource/jansi/blob/jansi-project-1.18/license.txt
+   org.fusesource.hawtjni:hawtjni-runtime:1.17 (Apache-2.0 OR EPL-1.0) -> https://github.com/fusesource/hawtjni/blob/hawtjni-project-1.17/license.txt
+   org.springframework:spring-core:5.2.2.RELEASE -> https://github.com/spring-projects/spring-framework/blob/v5.2.2.RELEASE/LICENSE.txt
+   org.springframework:spring-jcl:5.2.2.RELEASE -> https://github.com/spring-projects/spring-framework/blob/v5.2.2.RELEASE/LICENSE.txt
+   org.apache.commons:commons-exec:1.3 -> https://github.com/apache/commons-exec/blob/1.3/LICENSE.txt
+   org.scala-lang.modules:scala-collection-compat_2.12:2.0.0 -> https://github.com/scala/scala-collection-compat/blob/v2.0.0/LICENSE
+   org.scala-lang.modules:scala-java8-compat_2.12:1.0.2 -> https://github.com/scala/scala-java8-compat/blob/v1.0.2/LICENSE
+   org.typelevel:macro-compat_2.12:1.1.1 -> https://github.com/milessabin/macro-compat/blob/v1.1.1/LICENSE
 
 ========================================================================
 MPL v2
 ========================================================================
 
-   org.zeromq:jeromq:0.5.3 -> https://github.com/zeromq/jeromq/blob/master/LICENSE
+   org.zeromq:jeromq:0.5.3 -> https://github.com/zeromq/jeromq/blob/v0.5.3/LICENSE and licenses/LICENSE-MPL-2.0.txt
+   dev.dirs:directories (shaded into coursier-cache 2.0.0) -> https://github.com/dirs-dev/directories-jvm/blob/master/LICENSE and licenses/LICENSE-MPL-2.0.txt
 
 ========================================================================
 BSD-like
 ========================================================================
 
-   io.argonaut:argonaut_2.12 (BSD-3-Clause) -> https://github.com/argonaut-io/argonaut/blob/master/LICENSE and licenses/LICENSE-argonaut.txt
-   com.neilalexander:jnacl (BSD-2-Clause) -> https://github.com/neilalexander/jnacl/blob/master/LICENSE and licenses/LICENSE-jnacl.txt
-   asm:asm-commons:7.1 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
-   asm:asm-tree:7.1 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
-   asm:asm-util:7.1 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
-   asm:asm:7.1 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
+   io.argonaut:argonaut_2.12:6.2.4 (BSD-3-Clause) -> https://github.com/argonaut-io/argonaut/blob/v6.2.4/LICENCE and licenses/LICENSE-argonaut.txt
+   com.github.alexarchambault:argonaut-shapeless_6.2_2.12:1.2.0-M12 (BSD-3-Clause) -> https://github.com/alexarchambault/argonaut-shapeless/blob/v1.2.0-M12/LICENSE and licenses/LICENSE-argonaut-shapeless.txt
+   eu.neilalexander:jnacl:1.0.0 (BSD-2-Clause) -> https://github.com/neilalexander/jnacl/blob/v1.0/LICENSE and licenses/LICENSE-jnacl.txt
+   org.ow2.asm:asm-analysis:7.1 -> https://gitlab.ow2.org/asm/asm/-/blob/ASM_7_1/LICENSE.txt and licenses/LICENSE-asm.txt
+   org.ow2.asm:asm-commons:7.1 -> https://gitlab.ow2.org/asm/asm/-/blob/ASM_7_1/LICENSE.txt and licenses/LICENSE-asm.txt
+   org.ow2.asm:asm-tree:7.1 -> https://gitlab.ow2.org/asm/asm/-/blob/ASM_7_1/LICENSE.txt and licenses/LICENSE-asm.txt
+   org.ow2.asm:asm-util:7.1 -> https://gitlab.ow2.org/asm/asm/-/blob/ASM_7_1/LICENSE.txt and licenses/LICENSE-asm.txt
+   org.ow2.asm:asm:7.1 -> https://gitlab.ow2.org/asm/asm/-/blob/ASM_7_1/LICENSE.txt and licenses/LICENSE-asm.txt
    com.github.jupyter:jvm-repr:0.1.0 -> https://github.com/jupyter/jvm-repr/blob/master/LICENSE
 
 ========================================================================
 MIT license
 ========================================================================
 
-   net.sf.jopt-simple:jopt-simple:4.9 -> https://pholser.github.io/jopt-simple/license.html and licenses/LICENSE-jopt-simple.txt
-   org.slf4j:slf4j-api:1.7.32 -> http://www.slf4j.org/license.html and licenses/LICENSE-slf4j.txt
+   net.sf.jopt-simple:jopt-simple:4.9 -> https://github.com/jopt-simple/jopt-simple/blob/jopt-simple-4.9/LICENSE.txt and licenses/LICENSE-jopt-simple.txt
+   org.jsoup:jsoup:1.13.1 (shaded into coursier-util) -> https://github.com/jhy/jsoup/blob/jsoup-1.13.1/LICENSE and licenses/LICENSE-jsoup.txt
+   com.lihaoyi:fastparse_2.12:2.3.0 (shaded into coursier-core) -> https://github.com/com-lihaoyi/fastparse/blob/master/LICENSE
+   com.lihaoyi:geny_2.12:0.6.0 (shaded into coursier-core) -> https://github.com/com-lihaoyi/geny/blob/0.6.0/LICENSE
+   com.lihaoyi:sourcecode_2.12:0.2.1 (shaded into coursier-core) -> https://github.com/com-lihaoyi/sourcecode/blob/0.2.1/LICENSE
+   org.slf4j:slf4j-api:2.0.16 -> https://www.slf4j.org/license.html and licenses/LICENSE-slf4j.txt
diff --git a/etc/legal/NOTICE_extras b/etc/legal/NOTICE_extras
index 0f3f910c..b0f59498 100644
--- a/etc/legal/NOTICE_extras
+++ b/etc/legal/NOTICE_extras
@@ -1,24 +1,25 @@
 ========================================================================
 
-org.apache.ivy:ivy:2.5.1 -> https://github.com/apache/ant-ivy/blob/master/NOTICE
-org.apache.pekko:pekko-actor_2.12:1.1.5 -> https://github.com/apache/pekko/blob/main/legal/pekko-actor-jar-notice.txt
-org.apache.pekko:pekko-slf4j_2.12:1.1.5 -> https://github.com/apache/pekko/blob/main/legal/PekkoNotice.txt
-com.fasterxml.jackson.core:jackson-core:2.14.2 -> https://github.com/FasterXML/jackson-core/blob/ceee70db0e6c54d907c75585e4678a43dabe3dd6/src/main/resources/META-INF/jackson-core-NOTICE#L17
-com.fasterxml.jackson.core:jackson-databind:2.14.2 -> https://github.com/FasterXML/jackson-databind/blob/37bd362bffb9d69dd4e3dfabc08ac64f0f8e4953/src/main/resources/META-INF/NOTICE#L17
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 -> https://github.com/FasterXML/jackson-annotations/blob/92c08a9fc21d73f9f6aa730d4f90cb19105524c9/src/main/resources/META-INF/NOTICE#L17
-org.scala-lang.modules:scala-collection-compat_2.12:2.0.0 -> https://github.com/scala/scala-collection-compat/blob/main/NOTICE
-org.scala-lang.modules:scala-java8-compat_2.12:1.0.2 -> https://github.com/scala/scala-java8-compat/blob/main/NOTICE
-org.scala-lang.modules:scala-xml_2.12:2.1.0 -> https://github.com/scala/scala-xml/blob/main/NOTICE
+org.apache.commons:commons-exec:1.3 -> https://github.com/apache/commons-exec/blob/1.3/NOTICE.txt
+org.apache.pekko:pekko-actor_2.12:1.1.5 -> https://github.com/apache/pekko/blob/v1.1.5/legal/pekko-actor-jar-notice.txt
+org.apache.pekko:pekko-slf4j_2.12:1.1.5 -> https://github.com/apache/pekko/blob/v1.1.5/legal/PekkoNotice.txt
+com.fasterxml.jackson.core:jackson-core:2.14.2 -> https://github.com/FasterXML/jackson-core/blob/jackson-core-2.14.2/src/main/resources/META-INF/NOTICE
+com.fasterxml.jackson.core:jackson-databind:2.14.2 -> https://github.com/FasterXML/jackson-databind/blob/jackson-databind-2.14.2/src/main/resources/META-INF/NOTICE
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 -> https://github.com/FasterXML/jackson-annotations/blob/jackson-annotations-2.14.2/src/main/resources/META-INF/NOTICE
+org.scala-lang.modules:scala-collection-compat_2.12:2.0.0 -> https://github.com/scala/scala-collection-compat/blob/v2.0.0/NOTICE
+org.scala-lang.modules:scala-java8-compat_2.12:1.0.2 -> https://github.com/scala/scala-java8-compat/blob/v1.0.2/NOTICE
+org.springframework:spring-core:5.2.2.RELEASE -> https://github.com/spring-projects/spring-framework/blob/v5.2.2.RELEASE/src/docs/dist/notice.txt
+org.springframework:spring-jcl:5.2.2.RELEASE -> https://github.com/spring-projects/spring-framework/blob/v5.2.2.RELEASE/src/docs/dist/notice.txt
 
 ========================================================================
 
-scala-xml
-Copyright (c) 2002-2026 EPFL
-Copyright (c) 2011-2026 Lightbend, Inc. dba Akka
+scala-java8-compat
+Copyright (c) 2002-2021 EPFL
+Copyright (c) 2011-2021 Lightbend, Inc.
 
-scala-xml includes software developed at
+scala-java8-compat includes software developed at
 LAMP/EPFL (https://lamp.epfl.ch/) and
-Akka (https://akka.io/).
+Lightbend, Inc. (https://www.lightbend.com/).
 
 Licensed under the Apache License, Version 2.0 (the "License").
 Unless required by applicable law or agreed to in writing, software
@@ -29,13 +30,13 @@ limitations under the License.
 
 ------
 
-scala-java8-compat
-Copyright (c) 2002-2026 EPFL
-Copyright (c) 2011-2026 Lightbend, Inc. dba Akka
+scala-collection-compat
+Copyright (c) 2002-2019 EPFL
+Copyright (c) 2011-2019 Lightbend, Inc.
 
-scala-java8-compat includes software developed at
+Scala includes software developed at
 LAMP/EPFL (https://lamp.epfl.ch/) and
-Akka (https://akka.io/).
+Lightbend, Inc. (https://www.lightbend.com/).
 
 Licensed under the Apache License, Version 2.0 (the "License").
 Unless required by applicable law or agreed to in writing, software
@@ -46,23 +47,123 @@ limitations under the License.
 
 ------
 
+Apache Commons Exec
+Copyright 2005-2014 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+------
+
+Spring Framework 5.2.2.RELEASE
+Copyright (c) 2002-2019 Pivotal, Inc.
+
+This product is licensed to you under the Apache License, Version 2.0
+(the "License"). You may not use this product except in compliance with
+the License.
+
+This product may include a number of subcomponents with separate
+copyright notices and license terms. Your use of the source code for
+these subcomponents is subject to the terms and conditions of the
+subcomponent's license, as noted in the license.txt file.
+
+------
+
+Apache Pekko
+Copyright 2022-2025 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
+
+This product contains significant parts that were originally based on software from Lightbend (Akka <https://akka.io/>).
+Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
+
+Apache Pekko is derived from Akka 2.6.x, the last version that was distributed under the
+Apache License, Version 2.0 License.
+
+---------------
+
+pekko-actor contains MurmurHash.scala which has changes made by the Scala-Lang team under an Apache 2.0 license.
+
+Copyright (c) 2002-2023 EPFL
+Copyright (c) 2011-2023 Lightbend, Inc.
+
+Scala includes software developed at
+LAMP/EPFL (https://lamp.epfl.ch/) and
+Lightbend, Inc. (https://www.lightbend.com/).
+
+---------------
+
+pekko-actor contains code from scala-collection-compat which has changes made by the Scala-Lang team
+under an Apache 2.0 license.
+
 scala-collection-compat
-Copyright (c) 2002-2026 EPFL
-Copyright (c) 2011-2026 Lightbend, Inc. dba Akka
+Copyright (c) 2002-2023 EPFL
+Copyright (c) 2011-2023 Lightbend, Inc.
 
 Scala includes software developed at
 LAMP/EPFL (https://lamp.epfl.ch/) and
-Akka (https://akka.io/).
+Lightbend, Inc. (https://www.lightbend.com/).
 
-Licensed under the Apache License, Version 2.0 (the "License").
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+---------------
+
+pekko-actor contains code from scala-library which was released under an Apache 2.0 license.
+
+Scala
+Copyright (c) 2002-2023 EPFL
+Copyright (c) 2011-2023 Lightbend, Inc.
+
+Scala includes software developed at
+LAMP/EPFL (https://lamp.epfl.ch/) and
+Lightbend, Inc. (https://www.lightbend.com/).
+
+---------------
+
+pekko-actor contains code from Netty which was released under an Apache 2.0 license.
+
+                            The Netty Project
+                            =================
+
+Please visit the Netty web site for more information:
+
+  * https://netty.io/
+
+Copyright 2014 The Netty Project
+
+The Netty Project licenses this file to you under the Apache License,
+version 2.0 (the "License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at:
+
+  https://www.apache.org/licenses/LICENSE-2.0
+
+---------------
+
+pekko-actor contains code from java-uuid-generator <https://github.com/cowtowncoder/java-uuid-generator>
+in `org.apache.pekko.util.UUIDComparator.scala` which was released under an Apache 2.0 license.
+
+Java UUID generator library has been written by Tatu Saloranta (tatu.saloranta@iki.fi)
+
+Other developers who have contributed code are:
+
+* Eric Bie contributed extensive unit test suite which has helped ensure high implementation
+  quality
 
 ------
 
-joda-time
-This product includes software developed by
-Joda.org (https://www.joda.org/).
\ No newline at end of file
+# Jackson JSON processor
+
+Jackson is a high-performance, Free/Open Source JSON processing library.
+It was originally written by Tatu Saloranta (tatu.saloranta@iki.fi), and has
+been in development since 2007.
+It is currently developed by a community of developers.
+
+## Licensing
+
+Jackson 2.x core and extension components are licensed under Apache License 2.0
+To find the details that apply to this artifact see the accompanying LICENSE file.
+
+## Credits
+
+A list of contributors may be found from CREDITS(-2.x) file, which is included
+in some artifacts (usually source distributions); but is always available
+from the source code management (SCM) system project uses.
diff --git a/etc/legal/licenses/LICENSE-jeromq.txt b/etc/legal/licenses/LICENSE-MPL-2.0.txt
similarity index 99%
rename from etc/legal/licenses/LICENSE-jeromq.txt
rename to etc/legal/licenses/LICENSE-MPL-2.0.txt
index fa0086a9..a612ad98 100644
--- a/etc/legal/licenses/LICENSE-jeromq.txt
+++ b/etc/legal/licenses/LICENSE-MPL-2.0.txt
@@ -370,4 +370,4 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
 ---------------------------------------------------------
 
   This Source Code Form is "Incompatible With Secondary Licenses", as
-  defined by the Mozilla Public License, v. 2.0.
\ No newline at end of file
+  defined by the Mozilla Public License, v. 2.0.
diff --git a/etc/legal/licenses/LICENSE-argonaut-shapeless.txt b/etc/legal/licenses/LICENSE-argonaut-shapeless.txt
new file mode 100644
index 00000000..1e073aff
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-argonaut-shapeless.txt
@@ -0,0 +1,27 @@
+Copyright (c) 2015-16, Alexandre Archambault.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    1. Redistributions of source code must retain the above copyright notice,
+       this list of conditions and the following disclaimer.
+
+    2. Redistributions in binary form must reproduce the above copyright
+       notice, this list of conditions and the following disclaimer in the
+       documentation and/or other materials provided with the distribution.
+
+    3. Neither the name of Django nor the names of its contributors may be used
+       to endorse or promote products derived from this software without
+       specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/etc/legal/licenses/LICENSE-argonaut.txt b/etc/legal/licenses/LICENSE-argonaut.txt
index 509c7158..65c268be 100644
--- a/etc/legal/licenses/LICENSE-argonaut.txt
+++ b/etc/legal/licenses/LICENSE-argonaut.txt
@@ -21,4 +21,4 @@ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/etc/legal/licenses/LICENSE-clapper.txt b/etc/legal/licenses/LICENSE-clapper.txt
index b7a3272f..abb09c7b 100644
--- a/etc/legal/licenses/LICENSE-clapper.txt
+++ b/etc/legal/licenses/LICENSE-clapper.txt
@@ -1,8 +1,8 @@
 Copyright 2010-2019 Brian M. Clapper
 
 Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License. Y
-ou may obtain a copy of the License at
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
 
 https://www.apache.org/licenses/LICENSE-2.0
 
diff --git a/etc/legal/licenses/LICENSE-jnacl.txt b/etc/legal/licenses/LICENSE-jnacl.txt
index 38af2ad4..7c0d4b7b 100644
--- a/etc/legal/licenses/LICENSE-jnacl.txt
+++ b/etc/legal/licenses/LICENSE-jnacl.txt
@@ -21,4 +21,4 @@ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/etc/legal/licenses/LICENSE-jsoup.txt b/etc/legal/licenses/LICENSE-jsoup.txt
new file mode 100644
index 00000000..1802c6fa
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-jsoup.txt
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2009-2020 Jonathan Hedley <https://jsoup.org/>
+
+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.
diff --git a/etc/legal/licenses/LICENSE-scala.txt b/etc/legal/licenses/LICENSE-scala.txt
deleted file mode 100644
index 13fa6de3..00000000
--- a/etc/legal/licenses/LICENSE-scala.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Copyright (c) 2002-2016 EPFL
-Copyright (c) 2011-2016 Lightbend, Inc. (formerly Typesafe, Inc.)
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-Neither the name of the EPFL nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI [...]
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 69dc67d7..9315cfd3 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -36,7 +36,10 @@ object Dependencies {
   val coursier = "io.get-coursier" %% "coursier" % coursierVersion // Apache v2
   val coursierCache = "io.get-coursier" %% "coursier-cache" % coursierVersion // Apache v2
 
-  val ivy = "org.apache.ivy" % "ivy" % "2.5.1" // Apache v2
+  // NOTE: Apache Ivy is deliberately not declared here. IvyDependencyDownloader
+  // imports org.apache.ivy, but those classes come transitively from spark-core,
+  // which is a "provided" dependency, so Ivy is not bundled in the assembly and
+  // must not be listed in etc/legal. See etc/legal/README.md.
 
   // use the same jackson version in test than the one provided at runtime by Spark 3.4.x
   val jacksonDatabind = "com.fasterxml.jackson.core" % "jackson-databind" % "2.14.2" // Apache v2
@@ -57,7 +60,10 @@ object Dependencies {
   val scalaTestMockito = "org.scalatestplus" %% "mockito-4-11" % "3.2.16.0" // Apache v2
   val mockitoInline = "org.mockito" % "mockito-inline" % "4.11.0" // MIT
 
-  val slf4jApi = "org.slf4j" % "slf4j-api" % "2.0.6" // MIT
+  // pekko-slf4j 1.1.5 requires 2.0.16 and evicts anything lower; keep this in
+  // sync with what actually resolves, since etc/legal/LICENSE_extras must
+  // record the resolved version
+  val slf4jApi = "org.slf4j" % "slf4j-api" % "2.0.16" // MIT
 
   val sparkVersion = settingKey[String]("Version of Apache Spark to use in Toree") // defined in root build
   val sparkCore = Def.setting{ "org.apache.spark" %% "spark-core" % sparkVersion.value } // Apache v2