Skip to content

Commit 099c51a

Browse files
authored
Merge pull request #13967 from jdaugherty/7.0.x
Ensure plugins are published to the same location as they were prior …
2 parents 162eba5 + 2f2d04f commit 099c51a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

build.gradle

Lines changed: 12 additions & 10 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 {
@@ -247,7 +256,9 @@ subprojects { subproject ->
247256
}
248257
}
249258
if (isGrailsRepoPublish) {
250-
url "https://repo.grails.org/grails/libs-snapshots-local"
259+
url = isPlugin ?
260+
uri('https://repo.grails.org/grails/plugins3-snapshots-local') :
261+
uri('https://repo.grails.org/grails/libs-snapshots-local')
251262
} else {
252263
url 'https://maven.pkg.github.com/grails/grails-core'
253264
}
@@ -259,15 +270,6 @@ subprojects { subproject ->
259270

260271
publications {
261272
maven(MavenPublication) {
262-
// Historically async mapped the core libraries to different artifact ids
263-
Map mappedArtifactIds = [
264-
'grails-async-core' : 'grails-async',
265-
'grails-async-plugin' : 'async',
266-
'grails-events-core' : 'grails-events',
267-
'grails-events-plugin' : 'events',
268-
'grails-plugin-converters': 'converters'
269-
270-
]
271273
if(mappedArtifactIds.containsKey(subproject.name)) {
272274
artifactId = mappedArtifactIds[subproject.name]
273275
}

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)