project_defaults

Added in version 3.17.

Specify default values for stanzas authors, maintainers, and license of the dune-project file when initializing a project with dune init proj. The format of the ‘project_defaults’ stanza is as follows:

(project_defaults
 <optional-fields>)

<optional-fields> are:

(authors <string(s)>)

Specify authors.

Example:

(project_defaults
 (authors
  "Jane Doe <jane.doe@example.com>"
  "John Doe <john.doe@example.com>"))
(maintainers <string(s)>)

Specify maintainers.

Example:

(project_defaults
 (maintainers
  "Jane Doe <jane.doe@example.com>"
  "John Doe <john.doe@example.com>"))
(license <string(s)>)

Specify license, ideally as an identifier from the SPDX License List.

Example:

(project_defaults
 (license "MIT"))