I am planning to release my code under the terms of the Universal Permissive License (UPL), Version 1.0. According to UPL's FAQ, it is recommended that I include the entire text of the license at the beginning of every file that I release under the UPL. Since that is just a recommendation and the license text is rather long, I would prefer something shorter like this:
/*
* Copyright (c) 2022 Acme Corporation
* SPDX-License-Identifier: UPL-1.0
*/
Is the SPDX ID a sufficient replacement for the full text of the license? If not, I could add a human-readable line like this:
/*
* Copyright (c) 2022 Acme Corporation
* Licensed under the Universal Permissive License v1.0.
* SPDX-License-Identifier: UPL-1.0
*/
Can I also use a similar technique for other file-based licenses such as the MIT license or BSD license? e.g.
/*
* Copyright (c) 2022 Acme Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
or
/*
* Copyright (c) 2022 Acme Corporation
* Licensed under the 3-Clause BSD License.
* SPDX-License-Identifier: BSD-3-Clause
*/