]> nmode's Git Repositories - signal-cli/blobdiff - build.gradle.kts
Reformat code
[signal-cli] / build.gradle.kts
index 70f2a2b4dbc52f7113b8dc06a826d5f4f4abe4fa..eac1c81658d71f47229898c8dd1528af901fdb6e 100644 (file)
@@ -48,9 +48,9 @@ tasks.withType<JavaCompile> {
 tasks.withType<Jar> {
     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()
         )
     }
 }
@@ -70,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 {
@@ -81,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()
+            )
         }
     }
 }