From a3b22cc22ecce1d681c7b75fb61a4ad7f881701e Mon Sep 17 00:00:00 2001
From: Taras Smakula <tarassmakula@gmail.com>
Date: Tue, 16 Jan 2024 15:02:23 +0200
Subject: [PATCH] Fix auth publisher script

---
 auth/build.gradle | 64 +++++++++++++++++++++++------------------------
 1 file changed, 32 insertions(+), 32 deletions(-)

diff --git a/auth/build.gradle b/auth/build.gradle
index 8b21c81df..5ada1a537 100644
--- a/auth/build.gradle
+++ b/auth/build.gradle
@@ -92,35 +92,35 @@ kapt {
     correctErrorTypes = true
 }
 
-//def groupIdString = "org.futo.circles"
-//def artifactIdString = "auth"
-//
-//afterEvaluate {
-//    Properties properties = new Properties()
-//    if (rootProject.file("local.properties").exists()) {
-//        properties.load(rootProject.file("local.properties").newDataInputStream())
-//    }
-//    publishing {
-//        publications {
-//            release(MavenPublication) {
-//                from components.release
-//                groupId groupIdString
-//                artifactId artifactIdString
-//                version rootProject.ext.modules_version
-//            }
-//        }
-//        repositories {
-//            maven {
-//                url "https://gitlab.futo.org/api/v4/projects/$rootProject.ext.modules_gitlab_projectId/packages/maven"
-//                name "GitLab"
-//                credentials(HttpHeaderCredentials) {
-//                    name = "Private-Token"
-//                    value = properties.getProperty("PUBLISH_TOKEN")
-//                }
-//                authentication {
-//                    header(HttpHeaderAuthentication)
-//                }
-//            }
-//        }
-//    }
-//}
\ No newline at end of file
+def groupIdString = "org.futo.circles"
+def artifactIdString = "auth-gplay"
+
+afterEvaluate {
+    Properties properties = new Properties()
+    if (rootProject.file("local.properties").exists()) {
+        properties.load(rootProject.file("local.properties").newDataInputStream())
+    }
+    publishing {
+        publications {
+            release(MavenPublication) {
+                from components.gplayRelease
+                groupId groupIdString
+                artifactId artifactIdString
+                version rootProject.ext.modules_version
+            }
+        }
+        repositories {
+            maven {
+                url "https://gitlab.futo.org/api/v4/projects/$rootProject.ext.modules_gitlab_projectId/packages/maven"
+                name "GitLab"
+                credentials(HttpHeaderCredentials) {
+                    name = "Private-Token"
+                    value = properties.getProperty("PUBLISH_TOKEN")
+                }
+                authentication {
+                    header(HttpHeaderAuthentication)
+                }
+            }
+        }
+    }
+}
\ No newline at end of file
-- 
GitLab