-
Notifications
You must be signed in to change notification settings - Fork 116
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
Update jdk to openjdk8 #225
Comments
This doesn't imply upgrading |
Note this would make #186 infeasible. |
And there was a problem with java 8 and unicode. See #209 |
Let the fmt-maven-plugin reformat the code everytime it is compiled. Note that version 1.4.0 or above are compiled with java 8, and JFlex allow uses jdk7 (see #225).
It'd be nice if we could provide support for older jdks as long as that is feasible. If our dependencies force us to move up the minimum requirements, then there is not much we can do, of course. I just checked in #186 which versions are currently around in Travis, and it's basically only openjdk7 and openjdk8. We should make sure things work on openjdk8 for the next release. It sounds like #209 is solved now, so if I'm interpreting things correctly, there is only the change in This means we should make the test suite aware of the jdk version and allow different outputs depending on jdk, or run it conditionally based on jdk, or something in that vein. |
We now have a working test for both (jdk7 and jdk8). I think this satisfies this issue as well: we can drop jdk7 when our dependencies stop working, and we should make sure jdk8 remains functional. |
( @regisd feel free to re-open if you disagree, of course ) |
* Add build dep on **fmt-maven-plugin** which uses [google-java-format](https://github.com/google/google-java-format). - Let the fmt-maven-plugin reformat the code every time it is compiled. - Note that version 1.4.0 or above are compiled with java 8, and JFlex allow uses jdk7 (see #225). - Use version 1.3.0 for now. * Move **java_cup** in its own maven module. We don't want to reformat java_cup. Move it in its own Maven module and disable * Use **maven-shade-plugin** to package **jflex.jar** like before. * Add **Maven wrapper**. - Fucking Maven 3.5.0 has a bug which causes maven-shade-plugin to fail with `/target/classes (Is a directory)` - Import wrapper with `mvn -N io.takari:maven:wrapper` - Force add the wrapper jar (because jar extension is in `.gitignore`) - Update `run-tests` script with Maven (Travis detects its presence automatically and calls `mvnw` accordingly) - The wrapper is configured to use **Maven 3.5.2** * Don't touch java source for now * Update ant `buld.xml` as well
JFlex is currently compiled with openjdk7.
More and more Maven plugins are compiled with Java 8, and we cannot use them as a result.
Consider moving to openjdk8
The text was updated successfully, but these errors were encountered: