We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb6791 commit 489c96dCopy full SHA for 489c96d
library/build.gradle
@@ -1,5 +1,6 @@
1
apply plugin: 'com.android.library'
2
apply plugin: 'maven-publish'
3
+apply plugin: 'signing'
4
5
ext {
6
@@ -81,6 +82,16 @@ afterEvaluate {
81
82
}
83
84
85
+signing {
86
+ // gpg on MacOS is the same as gpg2
87
+ // ln -s /usr/local/bin/gpg /usr/local/bin/gpg2
88
+ // Make sure to populate the variables in gradle.properties
89
+ // signing.gnupg.keyName=XXX
90
+ // signing.gnupg.passpharse
91
+ useGpgCmd()
92
+ sign(publishing.publications)
93
+}
94
+
95
task sourcesJar(type: Jar) {
96
from android.sourceSets.main.java.srcDirs
97
archiveClassifier.set("sources")
0 commit comments