You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
valupdateLicenses= taskKey[LicenseReport]("Construct a report of used licenses in a project.")
25
-
vallicenseReportConfigurations= taskKey[Seq[LicenseReportConfiguration]]("Configuration for each license report we're generating.")
25
+
vallicenseReportConfigurations=
26
+
taskKey[Seq[LicenseReportConfiguration]]("Configuration for each license report we're generating.")
26
27
valdumpLicenseReport= taskKey[File]("Dumps a report file of the license report (using the target language).")
27
28
vallicenseReportDir= settingKey[File]("The location where we'll write the license reports.")
28
29
vallicenseReportStyleRules= settingKey[Option[String]]("The style rules for license report styling.")
29
30
vallicenseReportTitle= settingKey[String]("The name of the license report.")
30
31
vallicenseConfigurations= settingKey[Set[String]]("The ivy configurations we wish a report of.")
31
-
vallicenseSelection= settingKey[Seq[LicenseCategory]]("A priority-order list mechanism we can use to select licenses for projects that have more than one.")
32
-
vallicenseReportMakeHeader= settingKey[TargetLanguage=>String]("A mechanism of generating the header for the license report file.")
"A priority-order list mechanism we can use to select licenses for projects that have more than one."
34
+
)
35
+
vallicenseReportMakeHeader=
36
+
settingKey[TargetLanguage=>String]("A mechanism of generating the header for the license report file.")
33
37
vallicenseReportTypes= settingKey[Seq[TargetLanguage]]("The license report files to generate.")
34
-
vallicenseReportNotes= settingKey[PartialFunction[DepModuleInfo, String]]("A partial functoin that will obtain license report notes based on module.")
35
-
vallicenseOverrides= settingKey[PartialFunction[DepModuleInfo, LicenseInfo]]("A list of license overrides for artifacts with bad infomration on maven.")
36
-
vallicenseFilter= settingKey[LicenseCategory=>Boolean]("Configuration for what licenses to include in the report, by default.")
Copy file name to clipboardExpand all lines: src/main/scala/sbtlicensereport/license/LicenseInfo.scala
+40-8Lines changed: 40 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,49 @@ case class LicenseInfo(category: LicenseCategory, name: String, url: String) {
10
10
11
11
/** Companion object containing several common usage licenses. */
12
12
objectLicenseInfo {
13
-
valGPL2=LicenseInfo(LicenseCategory.GPL, "GNU General Public License (GPL), Version 2.0", "http://opensource.org/licenses/GPL-2.0")
14
-
valGPL3=LicenseInfo(LicenseCategory.GPL, "GNU General Public License (GPL), Version 3.0", "http://opensource.org/licenses/GPL-3.0")
15
-
valLGPL2=LicenseInfo(LicenseCategory.LGPL, "GNU Library or \"Lesser\" General Public License, Version 2.1 (LGPL-2.1)", "http://opensource.org/licenses/LGPL-2.1")
16
-
valLGPL3=LicenseInfo(LicenseCategory.LGPL, "GNU Library or \"Lesser\" General Public License, Version 3.0 (LGPL-3.0)", "http://opensource.org/licenses/LGPL-3.0")
17
-
valCDDL=LicenseInfo(LicenseCategory.CDDL, "Common Development and Distribution License (CDDL-1.0)", "http://opensource.org/licenses/CDDL-1.0")
0 commit comments