From ba4cd25f22578fdde855cb30a1ee8e658fe560e5 Mon Sep 17 00:00:00 2001 From: Djaytan <26904516+Djaytan@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:11:21 +0100 Subject: [PATCH] define JPMS module names _This change is similar to https://github.com/Incendo/cloud/pull/787._ --- .../kotlin/cloud-translations.base-conventions.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gradle/build-logic/src/main/kotlin/cloud-translations.base-conventions.gradle.kts b/gradle/build-logic/src/main/kotlin/cloud-translations.base-conventions.gradle.kts index 8fb9582..5cfb44b 100644 --- a/gradle/build-logic/src/main/kotlin/cloud-translations.base-conventions.gradle.kts +++ b/gradle/build-logic/src/main/kotlin/cloud-translations.base-conventions.gradle.kts @@ -36,3 +36,11 @@ dependencies { testImplementation(libs.mockito.jupiter) testImplementation(libs.truth) } + +tasks { + jar { + manifest { + attributes("Automatic-Module-Name" to "%s.%s".format(project.group, project.name.replace('-', '.'))) + } + } +}