From bac2d5a3460ab606c7ef13fc66b462cfddb6e1a8 Mon Sep 17 00:00:00 2001
From: Lavish Swarnkar <lavishswarnkar@gmail.com>
Date: Sun, 25 Feb 2024 14:43:15 +0530
Subject: [PATCH] configure maven-publish plugin

---
 .idea/misc.xml       |  1 -
 commons/build.gradle | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.idea/misc.xml b/.idea/misc.xml
index 38ffd72..605ec26 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ProjectRootManager" version="2" languageLevel="JDK_15_PREVIEW" project-jdk-name="15" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
diff --git a/commons/build.gradle b/commons/build.gradle
index 6d5581c..2735e21 100644
--- a/commons/build.gradle
+++ b/commons/build.gradle
@@ -1,6 +1,7 @@
 plugins {
     id 'com.android.library'
     id 'org.jetbrains.kotlin.android'
+    id 'maven-publish'
 }
 
 android {
@@ -40,4 +41,14 @@ dependencies {
     testImplementation 'junit:junit:4.13.2'
     androidTestImplementation 'androidx.test.ext:junit:1.1.3'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+}
+
+publishing {
+    publications {
+        create(MavenPublication) {
+            groupId = "com.github.The-Streamliners"
+            artifactId = "commons"
+            version = "1.0"
+        }
+    }
 }
\ No newline at end of file