From e6c97ae37af064a6ad60553a20e3c5cd5da79bf2 Mon Sep 17 00:00:00 2001 From: Wisdom Nji Date: Fri, 12 Apr 2024 20:51:12 +0100 Subject: [PATCH] Update build.gradle --- build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fd5473e..dafa377 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'maven-publish' + id 'digital.wup.android-maven-publish' version '3.6.2' } def versionsPropertiesFile = rootProject.file("version.properties") @@ -53,6 +54,11 @@ android { } +task sourceJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier "source" +} + publishing { publications { def _versionName = versionProperties['versionName'] @@ -61,6 +67,7 @@ publishing { groupId = 'com.afkanerd.smswithoutborders' artifactId = 'libsignal_doubleratchet' version = _versionName + from components.android afterEvaluate { from components.release @@ -68,7 +75,7 @@ publishing { } } repositories { - maven { + mavenAar { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/smswithoutborders/lib_signal_double_ratchet_java") credentials { @@ -91,4 +98,4 @@ dependencies { testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' -} \ No newline at end of file +}