diff --git a/build.gradle b/build.gradle index 4d3f5b0..157490b 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,7 @@ apply plugin: 'io.github.gradle-nexus.publish-plugin' nexusPublishing { repositories { sonatype { + stagingProfileId.set(MAVEN_GROUP_ID) nexusUrl.set(uri('https://ossrh-staging-api.central.sonatype.com/service/local/')) username.set(System.getenv("MAVEN_USERNAME")) password.set(System.getenv("MAVEN_PASSWORD")) diff --git a/gradle.properties b/gradle.properties index ecbf843..14985fa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,6 +20,8 @@ android.useAndroidX=true # Maven publishing / POM metadata GROUP=com.auth0.android +# Sonatype staging profile namespace (parent profile covering all com.auth0.* artifacts) +MAVEN_GROUP_ID=com.auth0 POM_ARTIFACT_ID=jwtdecode POM_NAME=JWTDecode.Android