]> nmode's Git Repositories - signal-cli/blobdiff - build.gradle.kts
Adapt log levels
[signal-cli] / build.gradle.kts
index 481f2668ba1f576d846cbdc3a5104eeb11d84bbc..e54613b3883dad56b1dabe2cbc0de72d76b9a03c 100644 (file)
@@ -3,10 +3,10 @@ plugins {
     application
     eclipse
     `check-lib-versions`
-    id("org.graalvm.buildtools.native") version "0.9.6"
+    id("org.graalvm.buildtools.native") version "0.9.9"
 }
 
-version = "0.9.2"
+version = "0.10.0"
 
 java {
     sourceCompatibility = JavaVersion.VERSION_17
@@ -30,13 +30,18 @@ graalvmNative {
 repositories {
     mavenLocal()
     mavenCentral()
+    maven {
+        url = uri("https://raw.github.com/AsamK/maven/master/releases/")
+    }
 }
 
 dependencies {
-    implementation("org.bouncycastle:bcprov-jdk15on:1.69")
-    implementation("net.sourceforge.argparse4j:argparse4j:0.9.0")
-    implementation("com.github.hypfvieh:dbus-java:3.3.1")
-    implementation("org.slf4j:slf4j-simple:1.7.32")
+    implementation("org.bouncycastle", "bcprov-jdk15on", "1.70")
+    implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.0")
+    implementation("net.sourceforge.argparse4j", "argparse4j", "0.9.0")
+    implementation("com.github.hypfvieh", "dbus-java-transport-native-unixsocket", "4.0.0-beta")
+    implementation("org.slf4j", "slf4j-simple", "1.7.32")
+    implementation("org.slf4j", "jul-to-slf4j", "1.7.32")
     implementation(project(":lib"))
 }
 
@@ -65,3 +70,17 @@ tasks.withType<Jar> {
         )
     }
 }
+
+task("fatJar", type = Jar::class) {
+    archiveBaseName.set("${project.name}-fat")
+    exclude(
+        "META-INF/*.SF",
+        "META-INF/*.DSA",
+        "META-INF/*.RSA",
+        "META-INF/NOTICE",
+        "META-INF/LICENSE",
+        "**/module-info.class"
+    )
+    from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
+    with(tasks.jar.get() as CopySpec)
+}