Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules are not supported in -source 8 #29

Open
Treehopper opened this issue Jun 23, 2020 · 1 comment
Open

modules are not supported in -source 8 #29

Treehopper opened this issue Jun 23, 2020 · 1 comment

Comments

@Treehopper
Copy link

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>
@Glavo
Copy link

Glavo commented May 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants