Skip to content

Commit 9a9d156

Browse files
authored
fix: test recoursive developers (CM-1299) (#4281)
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent ed3308a commit 9a9d156

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

services/apps/packages_worker/src/maven/extract.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,10 @@ async function resolveWithInheritance(groupId: string, artifactId: string, versi
276276

277277
const missingLicense = licenses.length === 0
278278
const missingScm = !scmUrl
279+
const missingDevelopers = developers.length === 0 || contributors.length === 0
279280
const parent = extractParent(pom)
280281

281-
if (parent && (missingLicense || missingScm)) {
282+
if (parent && (missingLicense || missingScm || missingDevelopers)) {
282283
const parentKey = `${parent.groupId}:${parent.artifactId}:${parent.version}`
283284
if (depth >= MAX_PARENT_DEPTH || visited.has(parentKey)) {
284285
log.warn(

0 commit comments

Comments
 (0)