X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/129a846cc1d539ea4208e6255a7f2ab37fca7c30..9e7a5d38606e42f99f520ff7a617b61dec060b49:/build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts index 5d1fab6a..f708423c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { `check-lib-versions` } -version = "0.8.0" +version = "0.8.4" java { sourceCompatibility = JavaVersion.VERSION_11 @@ -23,8 +23,8 @@ repositories { dependencies { implementation("org.bouncycastle:bcprov-jdk15on:1.68") - implementation("net.sourceforge.argparse4j:argparse4j:0.8.1") - implementation("com.github.hypfvieh:dbus-java:3.2.4") + implementation("net.sourceforge.argparse4j:argparse4j:0.9.0") + implementation("com.github.hypfvieh:dbus-java:3.3.0") implementation("org.slf4j:slf4j-simple:1.7.30") implementation(project(":lib")) } @@ -35,6 +35,12 @@ configurations { } } + +tasks.withType().configureEach { + isPreserveFileTimestamps = false + isReproducibleFileOrder = true +} + tasks.withType { options.encoding = "UTF-8" } @@ -42,9 +48,9 @@ tasks.withType { tasks.withType { manifest { attributes( - "Implementation-Title" to project.name, - "Implementation-Version" to project.version, - "Main-Class" to application.mainClass.get() + "Implementation-Title" to project.name, + "Implementation-Version" to project.version, + "Main-Class" to application.mainClass.get() ) } } @@ -64,7 +70,7 @@ val assembleNativeImage by tasks.registering { var graalVMHome = "" doFirst { graalVMHome = System.getenv("GRAALVM_HOME") - ?: throw GradleException("Required GRAALVM_HOME environment variable not set.") + ?: throw GradleException("Required GRAALVM_HOME environment variable not set.") } doLast { @@ -75,22 +81,24 @@ val assembleNativeImage by tasks.registering { exec { workingDir = File(".") - commandLine("$graalVMHome/bin/native-image", - "-H:Path=$nativeBinaryOutputPath", - "-H:Name=$nativeBinaryName", - "-H:JNIConfigurationFiles=graalvm-config-dir/jni-config.json", - "-H:DynamicProxyConfigurationFiles=graalvm-config-dir/proxy-config.json", - "-H:ResourceConfigurationFiles=graalvm-config-dir/resource-config.json", - "-H:ReflectionConfigurationFiles=graalvm-config-dir/reflect-config.json", - "--no-fallback", - "--allow-incomplete-classpath", - "--report-unsupported-elements-at-runtime", - "--enable-url-protocols=http,https", - "--enable-https", - "--enable-all-security-services", - "-cp", - sourceSets.main.get().runtimeClasspath.asPath, - application.mainClass.get()) + commandLine( + "$graalVMHome/bin/native-image", + "-H:Path=$nativeBinaryOutputPath", + "-H:Name=$nativeBinaryName", + "-H:JNIConfigurationFiles=graalvm-config-dir/jni-config.json", + "-H:DynamicProxyConfigurationFiles=graalvm-config-dir/proxy-config.json", + "-H:ResourceConfigurationFiles=graalvm-config-dir/resource-config.json", + "-H:ReflectionConfigurationFiles=graalvm-config-dir/reflect-config.json", + "--no-fallback", + "--allow-incomplete-classpath", + "--report-unsupported-elements-at-runtime", + "--enable-url-protocols=http,https", + "--enable-https", + "--enable-all-security-services", + "-cp", + sourceSets.main.get().runtimeClasspath.asPath, + application.mainClass.get() + ) } } }