jabel icon indicating copy to clipboard operation
jabel copied to clipboard

modules are not supported in -source 8

Open Treehopper opened this issue 5 years ago • 1 comments

JPMS is causing trouble. I excluded module-info.java files via the Maven compiler plugin. Maybe there is a better solution.

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>

					<excludes>
						<exclude>**/module-info.java</exclude>
					</excludes>
				</configuration>
			</plugin>

Treehopper avatar Jun 23 '20 12:06 Treehopper

Now I implemented a compiler that compiles module-info.java specifically to do this: Glavo/module-info-compiler

It just compiles module-info.java according to module-info.java's syntax, doesn't call javac, and doesn't do any actual checking of the module, so it can be done without configuring the module path, so it can easily be used in Java 8 projects.

Glavo avatar May 02 '22 03:05 Glavo