From 97b78866b22a4aacbe865414c91bd1f11aa512a0 Mon Sep 17 00:00:00 2001 From: lambiengcode Date: Tue, 28 May 2024 23:09:07 +0700 Subject: [PATCH] Add maven-publish plugin and update repositories --- build.gradle | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6f6e1f3..55c5023 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'com.android.library' + id 'maven-publish' } android { @@ -33,7 +34,7 @@ android { } externalNativeBuild { cmake { - path file('../../../CMakeLists.txt') + path file('./CMakeLists.txt') version '3.18.1' } } @@ -51,10 +52,23 @@ android { } } +repositories { + google() + mavenCentral() +} + dependencies { implementation 'androidx.appcompat:appcompat:1.4.0' implementation 'com.google.android.material:material:1.4.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' -} \ No newline at end of file +} + +publishing { + publications { + aar(MavenPublication) { + from components.release + } + } +}