From 8ae2f5e2226effc5917c44f5ff3be5cfcbc7445a Mon Sep 17 00:00:00 2001 From: kosenda Date: Sat, 9 Dec 2023 16:50:10 +0900 Subject: [PATCH 1/3] feature: add jitpack settings --- autosizetable/build.gradle.kts | 23 ++++++++++++++++++++++- gradle/libs.versions.toml | 3 +++ settings.gradle.kts | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/autosizetable/build.gradle.kts b/autosizetable/build.gradle.kts index 9711c5a..b6ddb01 100644 --- a/autosizetable/build.gradle.kts +++ b/autosizetable/build.gradle.kts @@ -1,6 +1,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.kotlin.android) + id("maven-publish") } android { @@ -25,8 +26,28 @@ android { composeOptions { kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get() } + + publishing { + singleVariant("release") { + withSourcesJar() + } + } } dependencies { implementation(libs.androidx.compose.foundation) -} \ No newline at end of file +} + +publishing { + publications { + register("release") { + groupId = "ksnd.autosizetable" + artifactId = "autosizetable" + version = libs.versions.autoSizeTable.get() + + afterEvaluate { + from(components["release"]) + } + } + } +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2cf963b..1914772 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,9 +3,11 @@ activity = "1.8.1" androidGradlePlugin = "8.2.0" androidxCompose = "1.6.0-beta02" androidxComposeMaterial3 = "1.2.0-alpha12" +autoSizeTable = "0.0.1" junit4 = "4.13.2" kotlin = "1.9.20" ktlint = "1.0.1" +secrets = "2.0.1" # I'm using it, so no deletions allowed androidxComposeCompiler = "1.5.4" @@ -26,3 +28,4 @@ ktlint = { group = "com.pinterest.ktlint", name = "ktlint-cli", version.ref = "k android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" } kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } +secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" } diff --git a/settings.gradle.kts b/settings.gradle.kts index ccd1274..e9cbc66 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -3,6 +3,7 @@ pluginManagement { google() mavenCentral() gradlePluginPortal() + maven { url = uri("https://jitpack.io") } } } dependencyResolutionManagement { From 5150f7b1748968313fdba43d8aa2f13d2ac63a28 Mon Sep 17 00:00:00 2001 From: kosenda Date: Sat, 9 Dec 2023 16:55:51 +0900 Subject: [PATCH 2/3] chore: fix --- gradle/libs.versions.toml | 1 - settings.gradle.kts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1914772..ab281d8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -28,4 +28,3 @@ ktlint = { group = "com.pinterest.ktlint", name = "ktlint-cli", version.ref = "k android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" } kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } -secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" } diff --git a/settings.gradle.kts b/settings.gradle.kts index e9cbc66..0024278 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -11,6 +11,7 @@ dependencyResolutionManagement { repositories { google() mavenCentral() + maven { url = uri("https://jitpack.io") } } } From dd4adfd6aac9b040a8c22cc9c4f9518ba2c48c30 Mon Sep 17 00:00:00 2001 From: kosenda Date: Sat, 9 Dec 2023 16:56:59 +0900 Subject: [PATCH 3/3] chore: fix libs.versions.toml --- gradle/libs.versions.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ab281d8..0f9003a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,14 +3,13 @@ activity = "1.8.1" androidGradlePlugin = "8.2.0" androidxCompose = "1.6.0-beta02" androidxComposeMaterial3 = "1.2.0-alpha12" -autoSizeTable = "0.0.1" junit4 = "4.13.2" kotlin = "1.9.20" ktlint = "1.0.1" -secrets = "2.0.1" # I'm using it, so no deletions allowed androidxComposeCompiler = "1.5.4" +autoSizeTable = "0.0.1" [libraries] androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activity" }