From 7f6704cf9fac0d00ca6c232f30e1fc0c32ecf4b8 Mon Sep 17 00:00:00 2001 From: Djaytan <26904516+Djaytan@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:47:16 +0100 Subject: [PATCH] define JPMS module names _This change is similar to https://github.com/Incendo/cloud/pull/787._ --- cloud-spring/build.gradle.kts | 1 + .../main/kotlin/cloud-spring.base-conventions.gradle.kts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/cloud-spring/build.gradle.kts b/cloud-spring/build.gradle.kts index c68f5b9..eb68ab4 100644 --- a/cloud-spring/build.gradle.kts +++ b/cloud-spring/build.gradle.kts @@ -42,6 +42,7 @@ javadocLinks { "org.springframework.shell:spring-shell-starter", "org.springframework.shell:spring-shell-standard-commands", "org.apache.tomcat.embed", + "org.jline:jline-console", "org.jline:jline-native", "org.apache.logging.log4j:log4j-to-slf4j", ) diff --git a/gradle/build-logic/src/main/kotlin/cloud-spring.base-conventions.gradle.kts b/gradle/build-logic/src/main/kotlin/cloud-spring.base-conventions.gradle.kts index 70f9d29..5ad4881 100644 --- a/gradle/build-logic/src/main/kotlin/cloud-spring.base-conventions.gradle.kts +++ b/gradle/build-logic/src/main/kotlin/cloud-spring.base-conventions.gradle.kts @@ -29,3 +29,11 @@ dependencies { testImplementation(libs.truth) testImplementation(libs.awaitility) } + +tasks { + jar { + manifest { + attributes("Automatic-Module-Name" to "%s.%s".format(project.group, project.name.replace('-', '.'))) + } + } +}