@@ -85,7 +85,7 @@ object LicenseReport {
8585
8686 def makeReport (
8787 module : IvySbt # Module ,
88- configs : Set [String ],
88+ configs : Set [Configuration ],
8989 licenseSelection : Seq [LicenseCategory ],
9090 overrides : DepModuleInfo => Option [LicenseInfo ],
9191 exclusions : DepModuleInfo => Option [Boolean ],
@@ -123,14 +123,14 @@ object LicenseReport {
123123 /** Picks a single license (or none) for this dependency. */
124124 private def pickLicenseForDep (
125125 dep : IvyNode ,
126- configs : Set [String ],
126+ configs : Set [Configuration ],
127127 categories : Seq [LicenseCategory ],
128128 originatingModule : DepModuleInfo
129129 ): Option [DepLicense ] =
130130 for {
131131 d <- Option (dep)
132132 cs = dep.getRootModuleConfigurations.toSet
133- filteredConfigs = if (cs.isEmpty) cs else cs.filter(configs)
133+ filteredConfigs = if (cs.isEmpty) cs else cs.filter(configs.map(_.name) )
134134 if ! filteredConfigs.isEmpty
135135 if ! filteredConfigs.forall(d.isEvicted)
136136 desc <- Option (dep.getDescriptor)
@@ -155,7 +155,7 @@ object LicenseReport {
155155
156156 private def getLicenses (
157157 report : ResolveReport ,
158- configs : Set [String ] = Set .empty,
158+ configs : Set [Configuration ] = Set .empty,
159159 categories : Seq [LicenseCategory ] = LicenseCategory .all,
160160 originatingModule : DepModuleInfo
161161 ): Seq [DepLicense ] = {
@@ -168,7 +168,7 @@ object LicenseReport {
168168
169169 private def makeReportImpl (
170170 report : ResolveReport ,
171- configs : Set [String ],
171+ configs : Set [Configuration ],
172172 categories : Seq [LicenseCategory ],
173173 overrides : DepModuleInfo => Option [LicenseInfo ],
174174 exclusions : DepModuleInfo => Option [Boolean ],
0 commit comments