X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/426b59d13e79fbe799f184b8605dfd2d31b34b36..f1d735f93db6ec45b391f4fc6bcd20c486d7143c:/lib/build.gradle.kts diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 719f8bb0..dd765cba 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -8,10 +8,18 @@ java { targetCompatibility = JavaVersion.VERSION_17 } +val libsignalClientPath = project.findProperty("libsignal_client_path")?.toString() + dependencies { - implementation(libs.signalservice) + if (libsignalClientPath == null) { + implementation(libs.signalservice) + } else { + implementation(libs.signalservice) { + exclude(group = "org.signal", module = "libsignal-client") + } + implementation(files(libsignalClientPath)) + } implementation(libs.jackson.databind) - implementation(libs.protobuf) implementation(libs.bouncycastle) implementation(libs.slf4j.api) implementation(libs.sqlite)