X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/0bd142ab6bf9706dd944a3b8b9764bf7c9a69ac1..f1d735f93db6ec45b391f4fc6bcd20c486d7143c:/lib/build.gradle.kts diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 761eb138..dd765cba 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -8,17 +8,28 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -repositories { - mavenLocal() - mavenCentral() -} +val libsignalClientPath = project.findProperty("libsignal_client_path")?.toString() dependencies { - implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_35") - implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.0") - implementation("com.google.protobuf", "protobuf-javalite", "3.11.4") - implementation("org.bouncycastle", "bcprov-jdk15on", "1.70") - implementation("org.slf4j", "slf4j-api", "1.7.32") + 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.bouncycastle) + implementation(libs.slf4j.api) + implementation(libs.sqlite) + implementation(libs.hikari) + + testImplementation(libs.junit) +} + +tasks.named("test") { + useJUnitPlatform() } configurations {