lift build to module path

This commit is contained in:
Jörg Prante 2024-04-15 15:34:55 +02:00
parent 5aab599eca
commit 01ea1c7c0b

View file

@ -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()