From 4a6b407be5fae1873f1b8387c9b192eff0d29cbd Mon Sep 17 00:00:00 2001 From: Djaytan <26904516+Djaytan@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:53:43 +0100 Subject: [PATCH] define JPMS module names _This change is similar to https://github.com/Incendo/cloud/pull/787._ --- .../src/main/kotlin/cloud-cli.base-conventions.gradle.kts | 8 ++++++++ gradle/libs.versions.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle/build-logic/src/main/kotlin/cloud-cli.base-conventions.gradle.kts b/gradle/build-logic/src/main/kotlin/cloud-cli.base-conventions.gradle.kts index 3f633d6..86b0731 100644 --- a/gradle/build-logic/src/main/kotlin/cloud-cli.base-conventions.gradle.kts +++ b/gradle/build-logic/src/main/kotlin/cloud-cli.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('-', '.'))) + } + } +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index eb615f1..fa1418a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -16,7 +16,7 @@ graal = "0.9.28" kotlin = "1.9.22" # Cloud -cloud = "2.0.0-SNAPSHOT" +cloud = "2.0.0" # External immutables = "2.10.0"