diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml
index 2c6ea3d8..b268ef36 100644
--- a/.idea/deploymentTargetSelector.xml
+++ b/.idea/deploymentTargetSelector.xml
@@ -5,9 +5,6 @@
-
-
-
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
index 931b96c3..16660f1d 100644
--- a/.idea/runConfigurations.xml
+++ b/.idea/runConfigurations.xml
@@ -5,8 +5,12 @@
+
+
+
+
diff --git a/build.gradle.kts b/build.gradle.kts
index e3f8a074..d7ed366b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,4 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ dependencies {
+ classpath(libs.android.maven.gradle.plugin)
+ }
+}
+
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
diff --git a/compose/build.gradle.kts b/compose/build.gradle.kts
index 58c4e2ae..e847499b 100644
--- a/compose/build.gradle.kts
+++ b/compose/build.gradle.kts
@@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
alias(libs.plugins.jetbrains.dokka)
+ id ("maven-publish")
}
android {
@@ -39,6 +40,27 @@ android {
}
}
+afterEvaluate {
+ publishing {
+ publications {
+ create("release") {
+ from(components["release"])
+
+ groupId = "com.github.yourssu"
+ artifactId = "handy-compose"
+ version = "0.1.0-alpha1"
+ }
+ create("debug") {
+ from(components["debug"])
+
+ groupId = "com.github.yourssu"
+ artifactId = "handy-compose-debug"
+ version = "0.1.0-alpha1"
+ }
+ }
+ }
+}
+
dependencies {
implementation(platform(libs.androidx.compose.bom))
@@ -53,4 +75,6 @@ dependencies {
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
debugImplementation(libs.androidx.ui.tooling)
+
+
}
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 7f467944..b4117e3c 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -1,5 +1,6 @@
[versions]
agp = "8.5.0"
+androidMavenGradlePlugin = "2.1"
kotlin = "1.9.0"
coreKtx = "1.13.1"
junit = "4.13.2"
@@ -28,6 +29,8 @@ androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
androidx-foundation-android = { group = "androidx.compose.foundation", name = "foundation-android", version.ref = "foundationAndroid" }
+android-maven-gradle-plugin = { module = "com.github.dcendents:android-maven-gradle-plugin", version.ref = "androidMavenGradlePlugin" }
+
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 51a490ab..7b2c5528 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -9,6 +9,7 @@ pluginManagement {
}
mavenCentral()
gradlePluginPortal()
+ maven("https://jitpack.io")
}
}
dependencyResolutionManagement {