From 01ea1c7c0bee92dc4802feabde2bd02f0391fb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Mon, 15 Apr 2024 15:34:55 +0200 Subject: [PATCH] lift build to module path --- gradle/compile/java.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gradle/compile/java.gradle b/gradle/compile/java.gradle index 6998a1d..25a53d9 100644 --- a/gradle/compile/java.gradle +++ b/gradle/compile/java.gradle @@ -23,6 +23,8 @@ tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' options.compilerArgs.add('-Xlint:all') // enforce presence of module-info.java + options.compilerArgs.add("--module-version") + options.compilerArgs.add(project.version as String) options.compilerArgs.add("--module-path") options.compilerArgs.add(classpath.asPath) classpath = files()