From 20894ea88c0dd2b0a1d3d27853f12048b3287557 Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Mon, 17 Aug 2026 01:18:35 +0900 Subject: [PATCH] Configure Central Portal credentials for nmcp Publishing failed with: Nmcp: Central Portal 'username' is missing, check your Nmcp configuration. This module applies the nmcp plugin but never configured it, unlike every other publishable module. Add the same block they use. --- build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index c3680e6..686f0ec 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -177,4 +177,14 @@ afterEvaluate { sign(publishing.publications["release"]) } } + + if (project == rootProject) { + // standalone build only — in multi-project (android-sdk), parent configures nmcp + nmcp { + publishAllPublicationsToCentralPortal { + username.set(findProperty("ossrh_username") as String? ?: System.getenv("OSSRH_USERNAME") ?: "") + password.set(findProperty("ossrh_password") as String? ?: System.getenv("OSSRH_PASSWORD") ?: "") + } + } + } }