X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/a20bbe12461910d0b04e216f15181f911e4b2032..f1d735f93db6ec45b391f4fc6bcd20c486d7143c:/lib/build.gradle.kts diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index ae1d88a0..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_32") - api("com.fasterxml.jackson.core", "jackson-databind", "2.13.0") - implementation("com.google.protobuf:protobuf-javalite:3.11.4") - implementation("org.bouncycastle:bcprov-jdk15on:1.69") - 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 { @@ -35,3 +46,9 @@ tasks.withType().configureEach { tasks.withType { options.encoding = "UTF-8" } + +tasks.jar { + manifest { + attributes("Automatic-Module-Name" to "org.asamk.signal.manager") + } +}