summaryrefslogtreecommitdiffhomepage
path: root/tunnel/publish.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/publish.gradle')
-rw-r--r--tunnel/publish.gradle13
1 files changed, 9 insertions, 4 deletions
diff --git a/tunnel/publish.gradle b/tunnel/publish.gradle
index 7124da64..43ac52f7 100644
--- a/tunnel/publish.gradle
+++ b/tunnel/publish.gradle
@@ -1,4 +1,5 @@
apply plugin: 'maven-publish'
+apply plugin: 'signing'
afterEvaluate {
publishing {
@@ -41,11 +42,11 @@ afterEvaluate {
}
repositories {
maven {
- name = "bintray"
- url = uri("https://api.bintray.com/maven/wireguard/wireguard-android/wireguard-android/;publish=1;override=0")
+ name = "sonatype"
+ url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
- username = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER')
- password = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
+ username = hasProperty('SONATYPE_USER') ? getProperty('SONATYPE_USER') : System.getenv('SONATYPE_USER')
+ password = hasProperty('SONATYPE_PASSWORD') ? getProperty('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD')
}
}
}
@@ -70,3 +71,7 @@ android.libraryVariants.all { variant ->
}
}
}
+
+signing {
+ sign publishing.publications
+}