mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-09 08:33:13 +02:00
Failures would still have been caught in the aggregate test results; but if we're going to print successes we should print skips and failures too. (This was just an oversight.)
99 lines
2.2 KiB
Groovy
99 lines
2.2 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
id 'signing'
|
|
}
|
|
|
|
sourceCompatibility = 17
|
|
archivesBaseName = "libsignal-server"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
mavenLocal()
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
// Include libsignal sources shared between the client and server
|
|
srcDir '../shared/java'
|
|
}
|
|
resources {
|
|
srcDir '../shared/resources'
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDir '../shared/test/java'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.13'
|
|
}
|
|
|
|
test {
|
|
jvmArgs '-Xcheck:jni'
|
|
testLogging {
|
|
events 'passed','skipped','failed'
|
|
showStandardStreams = true
|
|
showExceptions true
|
|
exceptionFormat 'full'
|
|
showCauses true
|
|
showStackTraces true
|
|
}
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
processResources {
|
|
// TODO: Build a different variant of the JNI library for server.
|
|
dependsOn ':makeJniLibrariesDesktop'
|
|
}
|
|
|
|
// MARK: Publishing
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifactId = archivesBaseName
|
|
from components.java
|
|
|
|
pom {
|
|
name = archivesBaseName
|
|
description = 'Signal Protocol cryptography library for Java (server-side)'
|
|
url = 'https://github.com/signalapp/libsignal'
|
|
|
|
scm {
|
|
url = 'scm:git@github.com:signalapp/libsignal.git'
|
|
connection = 'scm:git@github.com:signalapp/libsignal.git'
|
|
developerConnection = 'scm:git@github.com:signalapp/libsignal.git'
|
|
}
|
|
|
|
licenses {
|
|
license {
|
|
name = 'AGPLv3'
|
|
url = 'https://www.gnu.org/licenses/agpl-3.0.txt'
|
|
}
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
name = 'Signal Messenger LLC'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
setUpSigningKey(signing)
|
|
signing {
|
|
required { isReleaseBuild() && gradle.taskGraph.hasTask(":server:publish") }
|
|
sign publishing.publications.mavenJava
|
|
}
|