From 8dbc9acfbb2acb0cccc2b852b2991b7a3f583f98 Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 16 Jul 2026 17:16:39 +0530 Subject: [PATCH] Attach the release AAR to the published Maven artifact --- build.gradle.kts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ebd22c8..c6eb01c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -34,6 +34,10 @@ android { kotlinOptions { jvmTarget = "17" } + + publishing { + singleVariant("release") + } } ktlint { @@ -61,12 +65,15 @@ dependencies { androidTestImplementation("androidx.test.ext:junit:1.1.5") } -publishing { - publications { - register("release") { - groupId = "dev.thunderid" - artifactId = "android" - version = "0.1.0" +afterEvaluate { + publishing { + publications { + register("release") { + from(components["release"]) + groupId = "dev.thunderid" + artifactId = "android" + version = "0.1.0" + } } } }