Instead of lengthy blurbs, switch to single-line, machine-readable standardized (https://spdx.dev) license identifiers. The Linux kernel switched long ago, so there is strong precedent. Three cases are handled: AGPL-only, Apache-only, and dual licensed. For the latter case, I chose (AGPL-3.0-or-later and Apache-2.0), reasoning that our changes are extensive enough to apply our license. The changes we applied mechanically with a script, except to licenses/README.md. Closes #9937
Note on licenses directory
The files in this directory represent licenses that apply to portions of the work. See each source file for applicable licenses.
The work in whole is licensed under the Affero GPL, version 3 or above. See the LICENSE.AGPL file in the top-level directory.
Individual files contain the following tag:
SPDX-License-Identifier: AGPL-3.0-or-later
Some files are derived from Apache projects. These are dual-licensed with the Apache License (version 2) and AGPL 3.0. They contain the following tag:
SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)