Skip to content

Commit

Permalink
Merge pull request #367 from dabutvin/maven-backcompat
Browse files Browse the repository at this point in the history
update maven summarization for new harvest schema
  • Loading branch information
dabutvin authored Jan 30, 2019
2 parents 5650589 + ff5f813 commit 2ffdd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/summary/clearlydefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ class ClearlyDescribedSummarizer {

addMavenData(result, data) {
setIfValue(result, 'described.releaseDate', extractDate(data.releaseDate))
const projectSummaryLicenses = get(data, 'manifest.summary.project.licenses')
const projectSummaryLicenses =
get(data, 'manifest.summary.licenses') || get(data, 'manifest.summary.project.licenses') // the project layer was removed in 1.2.0
if (!projectSummaryLicenses) return
const licenseSummaries = flatten(projectSummaryLicenses.map(x => x.license))
const licenseUrls = uniq(flatten(licenseSummaries.map(license => license.url)))
Expand Down

0 comments on commit 2ffdd02

Please # to comment.