Keep only artifact and group ids as dependency's identifier.
This commit is contained in:
parent
dfedf4160d
commit
a4ff18e1e0
|
@ -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}") }
|
||||||
|
|
Loading…
Reference in New Issue