Skip to content

Commit 2f2d04f

Browse files
committed
Fix grails-bom for artifactid mappings
1 parent 6662e84 commit 2f2d04f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ subprojects { subproject ->
176176
ext.isCiBuild = subproject.hasProperty('isCiBuild') || System.getenv().get('CI') as Boolean
177177
ext.isAsyncProject = subproject.name.startsWith('grails-async') || subproject.name.startsWith('grails-events')
178178

179+
// Historically async mapped the core libraries to different artifact ids
180+
ext.mappedArtifactIds = [
181+
'grails-async-core' : 'grails-async',
182+
'grails-async-plugin' : 'async',
183+
'grails-events-core' : 'grails-events',
184+
'grails-events-plugin' : 'events',
185+
'grails-plugin-converters': 'converters'
186+
]
187+
179188
if (isPlugin) {
180189
group = 'org.grails.plugins'
181190
} else {
@@ -261,15 +270,6 @@ subprojects { subproject ->
261270

262271
publications {
263272
maven(MavenPublication) {
264-
// Historically async mapped the core libraries to different artifact ids
265-
Map mappedArtifactIds = [
266-
'grails-async-core' : 'grails-async',
267-
'grails-async-plugin' : 'async',
268-
'grails-events-core' : 'grails-events',
269-
'grails-events-plugin' : 'events',
270-
'grails-plugin-converters': 'converters'
271-
272-
]
273273
if(mappedArtifactIds.containsKey(subproject.name)) {
274274
artifactId = mappedArtifactIds[subproject.name]
275275
}

grails-bom/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ publishing {
140140
project.parent.subprojects.findResults {
141141
if (it.name == 'grails-bom') return null
142142
if (it.name.startsWith('grails-test-suite') || it.name.contains('grails-test-examples')) return null
143-
[groupId: it.group, artifactId: it.name, version: "${it.version}"] +
143+
[groupId: it.group, artifactId: mappedArtifactIds[it.name] ?: it.name, version: "${it.version}"] +
144144
(it.name == 'grails-dependencies'? [type:'pom'] : [])
145145
}.each {
146146
appendNodes(deps.appendNode('dependency'), it)

0 commit comments

Comments
 (0)