--- a/core/build.gradle.kts	Thu Apr 13 19:37:27 2023 -0400
+++ b/core/build.gradle.kts	Thu Apr 13 20:56:48 2023 -0400
@@ -1,11 +1,13 @@
 plugins {
-//    alias(libs.plugins.com.android.application)
-//    alias(libs.plugins.org.jetbrains.kotlin.android)
     id("com.android.library")
     kotlin("android")
     id("com.geekorum.build.source-license-checker")
+    `maven-publish`
 }
 
+group = "com.geekorum.aboutoss"
+version = "0.0.1"
+
 android {
     namespace = "com.geekorum.aboutoss.core"
     compileSdk = 33
@@ -15,6 +17,9 @@
 
         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
         consumerProguardFiles("consumer-rules.pro")
+        aarMetadata {
+            minCompileSdk = 24
+        }
     }
 
     buildTypes {
@@ -33,6 +38,13 @@
     kotlinOptions {
         jvmTarget = "1.8"
     }
+
+    publishing {
+        singleVariant("release") {
+            withJavadocJar()
+            withSourcesJar()
+        }
+    }
 }
 
 dependencies {
@@ -42,4 +54,29 @@
     testImplementation(libs.junit)
     androidTestImplementation(libs.androidx.test.ext.junit)
     androidTestImplementation(libs.espresso.core)
-}
\ No newline at end of file
+}
+
+publishing {
+    publications {
+        val pomConfiguration: (MavenPom).() -> Unit = {
+            name.set("core")
+            description.set("A library to retrieve and display opensource licenses in Android applications")
+            licenses {
+                license {
+                    name.set("GPL-3.0-or-later")
+                    url.set("https://www.gnu.org/licenses/gpl-3.0.html")
+                    distribution.set("repo")
+                }
+            }
+            inceptionYear.set("2023")
+        }
+
+        register<MavenPublication>("release") {
+            afterEvaluate {
+                from(components["release"])
+            }
+            artifactId = "core"
+            pom(pomConfiguration)
+        }
+    }
+}