Skip to content

Commit b709d36

Browse files
committed
tunnel: switch publishing to MavenCentral
Since MavenCentral requires GPG signed artifacts, we'll need to configure some things on the machine running the deployment. Specifically, these three Gradle properties need to be set (preferably in ~/.gradle/gradle.properties) ``` signing.keyId= // Duh signing.password= // I have absolutely no idea how this will work with HSMs signing.secretKeyRingFile= // $HOME/.gnupg/... you know the deal ``` The BINTRAY_USER and BINTRAY_KEY variables are replaced by SONATYPE_USER and SONATYPE_PASSWORD to better reflect their new contents. Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 0301c85 commit b709d36

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tunnel/publish.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'maven-publish'
2+
apply plugin: 'signing'
23

34
afterEvaluate {
45
publishing {
@@ -41,11 +42,11 @@ afterEvaluate {
4142
}
4243
repositories {
4344
maven {
44-
name = "bintray"
45-
url = uri("https://api.bintray.com/maven/wireguard/wireguard-android/wireguard-android/;publish=1;override=0")
45+
name = "sonatype"
46+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
4647
credentials {
47-
username = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER')
48-
password = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
48+
username = hasProperty('SONATYPE_USER') ? getProperty('SONATYPE_USER') : System.getenv('SONATYPE_USER')
49+
password = hasProperty('SONATYPE_PASSWORD') ? getProperty('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD')
4950
}
5051
}
5152
}
@@ -70,3 +71,7 @@ android.libraryVariants.all { variant ->
7071
}
7172
}
7273
}
74+
75+
signing {
76+
sign publishing.publications
77+
}

0 commit comments

Comments
 (0)