0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00

Java: add back missing repository information

I deleted this for simplicity when updating to Gradle 7.4 and then
forgot to put it back.
This commit is contained in:
Jordan Rose 2022-03-10 10:58:29 -08:00
parent 08b2d38b84
commit 821d72d65a
4 changed files with 40 additions and 4 deletions

View File

@ -92,6 +92,13 @@ afterEvaluate {
}
}
repositories {
maven {
url = getReleaseRepositoryUrl()
credentials {
username = getRepositoryUsername()
password = getRepositoryPassword()
}
}
}
}

View File

@ -11,10 +11,6 @@ subprojects {
}
}
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
task makeJniLibrariesAndroid(type:Exec) {
group 'Rust'
description 'Build the JNI libraries'
@ -53,3 +49,22 @@ task makeAll() {
dependsOn 'makeJniLibrariesDesktop', 'makeJniLibrariesAndroid'
}
// PUBLISHING
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
def getReleaseRepositoryUrl() {
return hasProperty('sonatypeRepo') ? sonatypeRepo
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
def getRepositoryUsername() {
return hasProperty('whisperSonatypeUsername') ? whisperSonatypeUsername : ""
}
def getRepositoryPassword() {
return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : ""
}

View File

@ -85,6 +85,13 @@ publishing {
}
}
repositories {
maven {
url = getReleaseRepositoryUrl()
credentials {
username = getRepositoryUsername()
password = getRepositoryPassword()
}
}
}
}

View File

@ -113,6 +113,13 @@ publishing {
}
}
repositories {
maven {
url = getReleaseRepositoryUrl()
credentials {
username = getRepositoryUsername()
password = getRepositoryPassword()
}
}
}
}