@@ -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 }
0 commit comments