X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/9620eb06ac81403d3ff0536d16a44a2afbf66fd6..f1d735f93db6ec45b391f4fc6bcd20c486d7143c:/lib/build.gradle.kts diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 9b12a328..dd765cba 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -8,21 +8,24 @@ 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_63") - implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.4.2") - implementation("com.google.protobuf", "protobuf-javalite", "3.21.6") - implementation("org.bouncycastle", "bcprov-jdk15on", "1.70") - implementation("org.slf4j", "slf4j-api", "2.0.3") - implementation("org.xerial", "sqlite-jdbc", "3.39.3.0") - implementation("com.zaxxer", "HikariCP", "5.0.1") - - testImplementation("org.junit.jupiter", "junit-jupiter", "5.9.0") + 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") {