From 0cf7fb6289d7a3316d9f87785f4d1049d4c3d1e7 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 19 Mar 2024 15:51:09 +0100 Subject: [PATCH] Add Automatic-Module-Name to pgpainless-core and pgpainless-sop --- pgpainless-core/build.gradle | 7 +++++++ pgpainless-sop/build.gradle | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/pgpainless-core/build.gradle b/pgpainless-core/build.gradle index 830e573d..bab6ecf1 100644 --- a/pgpainless-core/build.gradle +++ b/pgpainless-core/build.gradle @@ -27,3 +27,10 @@ dependencies { // @Nullable, @Nonnull annotations implementation "com.google.code.findbugs:jsr305:3.0.2" } + +// https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto +tasks.named('jar') { + manifest { + attributes('Automatic-Module-Name': 'org.pgpainless.core') + } +} diff --git a/pgpainless-sop/build.gradle b/pgpainless-sop/build.gradle index bb4ddaca..26beec67 100644 --- a/pgpainless-sop/build.gradle +++ b/pgpainless-sop/build.gradle @@ -34,3 +34,10 @@ test { useJUnitPlatform() environment("test.implementation", "sop.testsuite.pgpainless.PGPainlessSopInstanceFactory") } + +// https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto +tasks.named('jar') { + manifest { + attributes('Automatic-Module-Name': 'org.pgpainless.sop') + } +}