From 8f0dc8d6e7745ce3501d5b4bb757efc82d7bd180 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 21 May 2023 14:53:00 +0200 Subject: [PATCH] Add Automatic-Module-Name attribute to jar manifest This allows using the libraries from java modules. https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto --- java/client/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/client/build.gradle b/java/client/build.gradle index 7ee6b1543e..da78e293e0 100644 --- a/java/client/build.gradle +++ b/java/client/build.gradle @@ -46,6 +46,12 @@ java { withJavadocJar() } +tasks.named('jar') { + manifest { + attributes('Automatic-Module-Name': 'org.signal.libsignal') + } +} + processResources { // TODO: Build a different variant of the JNI library for server. dependsOn ':makeJniLibrariesDesktop'