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:
parent
08b2d38b84
commit
821d72d65a
@ -92,6 +92,13 @@ afterEvaluate {
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
url = getReleaseRepositoryUrl()
|
||||
credentials {
|
||||
username = getRepositoryUsername()
|
||||
password = getRepositoryPassword()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 : ""
|
||||
}
|
||||
|
@ -85,6 +85,13 @@ publishing {
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
url = getReleaseRepositoryUrl()
|
||||
credentials {
|
||||
username = getRepositoryUsername()
|
||||
password = getRepositoryPassword()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -113,6 +113,13 @@ publishing {
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
url = getReleaseRepositoryUrl()
|
||||
credentials {
|
||||
username = getRepositoryUsername()
|
||||
password = getRepositoryPassword()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user