Skip to content

Commit 86152fd

Browse files
committed
templates: license is now EPL-1.0 by default, change with :license/id
This new feature is based on the [clj-spdx](https://github.com/pmonks/clj-spdx) library to access the license repository managed by [SPDX](https://spdx.dev/). See `practicalli.licenses/id->license` for more details.
1 parent 7868caf commit 86152fd

16 files changed

Lines changed: 67 additions & 1722 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
44

55
# [Unreleased]
6+
## Added
7+
- templates: license is now EPL-1.0 by default, change with :license/id option
68

79
# 2026-02-05
810

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ Override the defaults used to create a project using command line options
6161
* `:name` and value to create a project with a different name, e.g. `github-org/project-name`
6262
* `:target-dir` to specify a directory to create the project in
6363
* `:overwrite` an existing project with the same `:target-dir name`, `true` updates, `:delete` deletes existing project and replaces it with new project
64+
* `:license/id` to specify a different license than the default EPL-1.0, see the [SPDX license list](https://spdx.org/licenses/) for a list of available license identifiers.
6465

6566
```shell
6667
clojure -T:project/create :template practicalli/service \
67-
:name practicalli/gameboard :target-dir gameboard-service
68+
:name practicalli/gameboard :target-dir gameboard-service \
69+
:license/id '"MIT"'
6870
```
6971

7072

deps.edn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{:paths ["src" "resources"]
22

33
:deps
4-
{org.clojure/clojure {:mvn/version "1.12.4"}}
4+
{org.clojure/clojure {:mvn/version "1.12.4"}
5+
com.github.pmonks/clj-spdx {:mvn/version "1.0.286"}}
56

67
:aliases
78
{;; Add libraries and paths to support additional test tools

resources/practicalli/application/root/LICENSE

Lines changed: 1 addition & 427 deletions
Large diffs are not rendered by default.

resources/practicalli/application/root/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ Or build and run the service via the multi-stage `Dockerfile` configuration as p
140140

141141
Copyright © {{now/year}} {{developer}}
142142

143-
[Creative Commons Attribution Share-Alike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/")
143+
[{{license/name}}]({{license/url}})

resources/practicalli/landing_page/root/LICENSE

Lines changed: 1 addition & 427 deletions
Large diffs are not rendered by default.

resources/practicalli/landing_page/root/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ make dist
6262

6363
Copyright © 2023 {{developer}}
6464

65-
Distributed under the Creative Commons Attribution Share-Alike 4.0 International
65+
[{{license/name}}]({{license/url}})

resources/practicalli/minimal/root/LICENSE

Lines changed: 1 addition & 427 deletions
Large diffs are not rendered by default.

resources/practicalli/minimal/root/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ Or build and run the service via the multi-stage `Dockerfile` configuration as p
142142

143143
Copyright © {{now/year}} {{developer}}
144144

145-
[Creative Commons Attribution Share-Alike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/")
145+
[{{license/name}}]({{license/url}})

resources/practicalli/service/root/LICENSE

Lines changed: 1 addition & 427 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)