11package sbtlicensereport
22
33import sbt ._
4- import sbt . librarymanagement . ivy . IvyDependencyResolution
4+ import sbtlicensereport . SbtLicenseReportCompat . _
55import Keys ._
66import license ._
77
@@ -81,7 +81,7 @@ object SbtLicenseReport extends AutoPlugin {
8181 override lazy val projectSettings : Seq [Setting [_]] =
8282 Seq (
8383 licenseReportTitle := s " ${normalizedName.value}-licenses " ,
84- updateLicenses := {
84+ updateLicenses := Def .uncached {
8585 val ignore = update.value
8686 val overrides = licenseOverrides.value.lift
8787 val depExclusions = licenseDepExclusions.value.lift
@@ -101,7 +101,7 @@ object SbtLicenseReport extends AutoPlugin {
101101 licenseReportMakeHeader := (language => language.header1(licenseReportTitle.value)),
102102 // TODO - Maybe we need a general purpose reporting directory
103103 licenseReportDir := target.value / " license-reports" ,
104- licenseReportConfigurations := {
104+ licenseReportConfigurations := Def .uncached {
105105 val dir = licenseReportDir.value
106106 val styleRules = licenseReportStyleRules.value
107107 // TODO - Configurable language (markdown/html/csv) rather than all always
@@ -119,28 +119,28 @@ object SbtLicenseReport extends AutoPlugin {
119119 )
120120 Seq (config)
121121 },
122- dumpLicenseReport := {
122+ dumpLicenseReport := Def .uncached {
123123 val report = updateLicenses.value
124124 val dir = licenseReportDir.value
125125 for (config <- licenseReportConfigurations.value)
126126 LicenseReport .dumpLicenseReport(report.licenses, config)
127127 dir
128128 },
129- dumpLicenseReportAggregate := {
129+ dumpLicenseReportAggregate := Def .uncached {
130130 val reports = aggregateUpdateLicenses.value
131131 val dir = licenseReportDir.value
132132 for (config <- licenseReportConfigurations.value)
133133 LicenseReport .dumpLicenseReport(reports.flatMap(_.licenses), config)
134134 dir
135135 },
136- dumpLicenseReportAnyProject := {
136+ dumpLicenseReportAnyProject := Def .uncached {
137137 val reports = anyProjectUpdateLicenses.value
138138 val dir = licenseReportDir.value
139139 for (config <- licenseReportConfigurations.value)
140140 LicenseReport .dumpLicenseReport(reports.flatMap(_.licenses), config)
141141 dir
142142 },
143- licenseCheck := {
143+ licenseCheck := Def .uncached {
144144 val log = streams.value.log
145145 val report = updateLicenses.value
146146 val allowed = licenseCheckAllow.value
0 commit comments