Skip to content

Commit

Permalink
Add project subprojects to bom
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Oct 18, 2024
1 parent 3b94cc8 commit 6f03304
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion grails-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,15 @@ publishing {
type: 'pom',
scope: 'import'
])


project.parent.subprojects.findResults {
if (it.name == 'grails-bom') return null
[groupId: it.group, artifactId: it.name, version: it.version] +
(it.name == 'grails-dependencies'? [type:'pom'] : [])
}.each {
appendNodes(deps.appendNode('dependency'), it)
}

allDependencies.collect { it.subMap('groupId', 'artifactId', 'version') }.each {
appendNodes(deps.appendNode('dependency'), it)
}
Expand Down

0 comments on commit 6f03304

Please sign in to comment.