@@ -293,7 +293,8 @@ def commonPom = {
293293publishing {
294294 publications {
295295 jarLibrary(MavenPublication ) {
296- artifactId = ' realm-android-library'
296+ groupId ' io.realm'
297+ artifactId = ' realm-android'
297298 artifact file(" ${ buildDir} /outputs/gradle/realm-android-${ currentVersion} .jar" )
298299 artifact file(" ${ rootDir} /realm/realm-library/build/libs/realm-android-${ currentVersion} -sources.jar" )
299300 artifact file(" ${ rootDir} /realm/realm-library/build/libs/realm-android-${ currentVersion} -javadoc.jar" )
@@ -307,20 +308,22 @@ publishing {
307308 }
308309 }
309310 aarLibrary(MavenPublication ) {
311+ groupId ' io.realm'
310312 artifactId = ' realm-android-library'
311313 artifact file(" ${ rootDir} /realm/realm-library/build/outputs/aar/realm-library-release.aar" )
312314 artifact file(" ${ rootDir} /realm/realm-library/build/libs/realm-android-${ currentVersion} -sources.jar" )
313315 artifact file(" ${ rootDir} /realm/realm-library/build/libs/realm-android-${ currentVersion} -javadoc.jar" )
314316 pom. withXml {
315317 Node root = asNode()
316- root. appendNode(' name' , ' realm-android' )
318+ root. appendNode(' name' , ' realm-android-library ' )
317319 root. appendNode(' description' , ' Realm is a mobile database: a replacement for SQLite & ORMs.' )
318320 root. appendNode(' url' , ' http://realm.io' )
319321 root. appendNode(' packaging' , ' aar' )
320322 root. children(). last() + commonPom
321323 }
322324 }
323325 annotations(MavenPublication ) {
326+ groupId ' io.realm'
324327 artifactId = ' realm-annotations'
325328 artifact file(" ${ rootDir} /realm/realm-annotations/build/libs/realm-annotations-${ currentVersion} .jar" )
326329 pom. withXml {
@@ -333,6 +336,7 @@ publishing {
333336 }
334337 }
335338 annotationsProcessor(MavenPublication ) {
339+ groupId ' io.realm'
336340 artifactId = ' realm-annotations-processor'
337341 artifact file(" ${ rootDir} /realm/realm-annotations-processor/build/libs/realm-annotations-processor-${ currentVersion} .jar" )
338342 pom. withXml {
@@ -345,6 +349,7 @@ publishing {
345349 }
346350 }
347351 gradlePlugin(MavenPublication ) {
352+ groupId ' io.realm'
348353 artifactId = ' realm-gradle-plugin'
349354 artifact file(" ${ rootDir} /gradle-plugin/build/libs/gradle-plugin-${ currentVersion} .jar" )
350355 pom. withXml {
0 commit comments