Merge pull request #395 from eed3si9n/wip/licenses

Add predefined list of licenses
This commit is contained in:
eugene yokota 2022-01-31 21:23:09 -05:00 committed by GitHub
commit 6798813515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package sbt.librarymanagement
import java.net.URL
/**
* Commonly used software licenses
* Names are SPDX ids:
* https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json
*/
object License {
lazy val Apache2: (String, URL) =
("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
lazy val MIT: (String, URL) =
("MIT", new URL("https://opensource.org/licenses/MIT"))
lazy val CC0: (String, URL) =
("CC0-1.0", new URL("https://creativecommons.org/publicdomain/zero/1.0/legalcode"))
def PublicDomain: (String, URL) = CC0
lazy val GPL3_or_later: (String, URL) =
("GPL-3.0-or-later", new URL("https://spdx.org/licenses/GPL-3.0-or-later.html"))
}