From 6f9944f252ba9065d03594b4cabb485de1c351ce Mon Sep 17 00:00:00 2001 From: theberdakh Date: Sun, 23 Jun 2024 15:50:51 +0500 Subject: [PATCH] remove some dependencies and publish lib test --- fromtouz/build.gradle.kts | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/fromtouz/build.gradle.kts b/fromtouz/build.gradle.kts index 7921cc5..1653dff 100644 --- a/fromtouz/build.gradle.kts +++ b/fromtouz/build.gradle.kts @@ -1,6 +1,9 @@ +import com.android.build.gradle.internal.utils.createPublishingInfoForLibrary + plugins { id("com.android.library") id("org.jetbrains.kotlin.android") + id("maven-publish") } android { @@ -30,19 +33,39 @@ android { kotlinOptions { jvmTarget = "1.8" } + + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } + } dependencies { implementation("androidx.core:core-ktx:1.13.1") - implementation("androidx.appcompat:appcompat:1.7.0") - implementation("com.google.android.material:material:1.12.0") testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.6") implementation("com.squareup.retrofit2:retrofit:2.11.0") implementation("com.squareup.retrofit2:converter-gson:2.9.0") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0") -} \ No newline at end of file +} + +publishing { + publications { + create("release", MavenPublication::class) { + groupId = "com.github.theberdakh" + artifactId = "From2" + version = "1.0.0" + + afterEvaluate { + from(components["release"]) + } + } + } +} + +