X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/e83e9ae31389a564097ab68d20ebff9934ea983f..c66f92d4884038dc4ca1b8e40d2545299605b822:/build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts index 238f4ec6..e54613b3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,14 +3,14 @@ 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_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } application { @@ -22,6 +22,7 @@ graalvmNative { this["main"].run { configurationFileDirectories.from(file("graalvm-config-dir")) buildArgs.add("--allow-incomplete-classpath") + buildArgs.add("--report-unsupported-elements-at-runtime") } } } @@ -29,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.30") + 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")) } @@ -64,3 +70,17 @@ tasks.withType { ) } } + +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) +}