mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-05-30 15:14:14 +00:00
parent
62fc96c4c9
commit
b2bab0d0dc
@ -146,3 +146,17 @@ tasks.register("fatJar", type = Jar::class) {
|
|||||||
}
|
}
|
||||||
with(tasks.jar.get())
|
with(tasks.jar.get())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register("writeLibsignalVersion") {
|
||||||
|
doLast {
|
||||||
|
val resolutionResult = configurations.runtimeClasspath.get().incoming.resolutionResult
|
||||||
|
val libsignalDep =
|
||||||
|
resolutionResult.allDependencies.find { dep -> dep.requested is ModuleComponentSelector && (dep.requested as ModuleComponentSelector).group == "org.signal" && (dep.requested as ModuleComponentSelector).moduleIdentifier.name == "libsignal-client" }
|
||||||
|
if (libsignalDep != null) {
|
||||||
|
val version = (libsignalDep.requested as ModuleComponentSelector).version
|
||||||
|
file("libsignal-version").writeText(version + "\n")
|
||||||
|
} else {
|
||||||
|
throw GradleException("Could not find libsignal-client dependency")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
1
libsignal-version
Normal file
1
libsignal-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
0.90.0
|
||||||
Loading…
x
Reference in New Issue
Block a user