Skip to content

Commit

Permalink
build: Tweak module info output for correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Oct 17, 2022
1 parent 2ce6073 commit 891f9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java9/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}

0 comments on commit 891f9a4

Please sign in to comment.