Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockwisdom authored Apr 12, 2024
1 parent aa2d293 commit e6c97ae
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -53,6 +54,11 @@ android {

}

task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "source"
}

publishing {
publications {
def _versionName = versionProperties['versionName']
Expand All @@ -61,14 +67,15 @@ publishing {
groupId = 'com.afkanerd.smswithoutborders'
artifactId = 'libsignal_doubleratchet'
version = _versionName
from components.android

afterEvaluate {
from components.release
}
}
}
repositories {
maven {
mavenAar {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/smswithoutborders/lib_signal_double_ratchet_java")
credentials {
Expand All @@ -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'
}
}

0 comments on commit e6c97ae

Please sign in to comment.