If you intend to publish your code in a project for others to use, you'll want to specify a license at the root of your project laying out the conditions under which others may use it.
First create an author with thecreate.author
command.
project1/main> create.author aliceCoder "Alice Coder"
This adds the following values to your codebase:
1. metadata.authors.aliceCoder : metadata.Author
2. metadata.authors.aliceCoder.guid : GUID
3. metadata.copyrightHolders.aliceCoder : CopyrightHolder
Next, create a License with aCopyrightHolder
andmetadata.LicenseType
under which to publish your code. The license is an ordinary Unison value of typemetadata.License
.In your scratch file, you'll create a license value like this:
LICENSE =
License [copyrightHolders.aliceCoder] [Year 2023] licenseTypes.bsd3
Add that to your project at the top-level of the project:
project1/main> add