From 891f9a4fc6e153130fdd31957e2596852805e1a0 Mon Sep 17 00:00:00 2001 From: zml Date: Sun, 16 Oct 2022 21:47:49 -0700 Subject: [PATCH] build: Tweak module info output for correctness --- build.gradle.kts | 2 +- src/main/java9/module-info.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2ad501f..d7d10f0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -67,7 +67,7 @@ allprojects { tasks { withType(JavaCompile::class).configureEach { doFirst { - options.compilerArgs.addAll(listOf("--module-path", classpath.asPath)) + options.compilerArgs.addAll(listOf("--module-path", classpath.asPath, "--module-version", project.version.toString())) } } javadoc { diff --git a/src/main/java9/module-info.java b/src/main/java9/module-info.java index 2c46010..3b6d94c 100644 --- a/src/main/java9/module-info.java +++ b/src/main/java9/module-info.java @@ -7,5 +7,5 @@ requires transitive com.google.gson; requires static transitive org.checkerframework.checker.qual; - requires static maven.artifact; // Generated module name + requires static transitive maven.artifact; // Generated module name, may change? } \ No newline at end of file