Keep only artifact and group ids as dependency's identifier.

This commit is contained in:
Manuele Simi 2020-03-10 13:55:00 -04:00
parent dfedf4160d
commit a4ff18e1e0
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ pipeline {
// get all the maven modules and their dependencies // get all the maven modules and their dependencies
Jenkins.getInstance().getAllItems(hudson.maven.MavenModule.class).each { m -> Jenkins.getInstance().getAllItems(hudson.maven.MavenModule.class).each { m ->
modules2deps[m.name] = [] modules2deps[m.name] = []
m.getDependencies().each { d -> modules2deps[m.name] << d.toString() } m.getDependencies().each { d -> modules2deps[m.name] << "${d.groupId}:${d.artifactId" }
} }
println "FOUND ${modules2deps.size()} modules" println "FOUND ${modules2deps.size()} modules"
modules2deps.each { k,v -> println ("MODULE ${k} DEPENDS on ${v}") } modules2deps.each { k,v -> println ("MODULE ${k} DEPENDS on ${v}") }