-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upgrade both Asciidoclet to Java 11, and Asciidoctorj to version 2.1.0 #97
Conversation
Also update Java dependency to Java 11, and update all Maven plugins to the latest version. Also add a requirement that the Maven version must be at least 3.0.5 in order to support the latest plugins.
The StandardAdapter was trashed in the process, though.
… under Java 11. Many things are broken. This is currently more of an exploratory prototype, than it is working but incomplete code. There are a lot of ugly hacks here, to work around the new restrictions of the javadoc APIs.
…ys close the attributes files we open.
Also update Stylesheets to use new Java APIs, and make sure that input and output streams are closed.
Also make sure that the output directory of the integration test is empty before rendering new doclet output.
…void re-rendering asciidoctor javadoc comments that have already been rendered.
…ngs, to almost make it possible for asciidoclet to render its own javadoc.
Included in this is also a bunch of cleanup. Particularly, many inner classes have been extracted. Reported javadoc errors are now also _slightly_ closer to their cause in the code.
Thanks for taking this on! The right people to ping are @johncarl81 and @msgilligan. |
Also a ping for @robertpanzer in case he has seen this before. |
Sorry I haven't had any time to help with this, but I should be able to test the ConsensusJ build. I just upgraded the Travis config so it can build with OpenJDK11 although I have it disabled because it's using old Asciidoclet. Here's the issue I created: ConsensusJ/consensusj#55 |
Looks like there's some issues in the build? I haven't done anything with java modules yet, so I'm not sure. |
Closing because I don't intend to pursue this one any further. #96 appears to work, and is enough for my purposes. |
This PR is based on #96 for the Java 11 upgrade.
When upgrading asciidoctorj to versoin 2.1.0, the build starts to fail as shown below. It looks like the JNR dependency of JRuby is not properly modularised, and causes Java package conflicts because both
jnr-enxio
andjnr-unixsocket
define ajnr.enxio.channels
package. In a modular Java world, two modules cannot both define the same package, even when they are anonymous modules.Ping @mojavelinux & @headius.
I haven't yet checked if there are newer versions of JNR or JRuby that solves this already. I can do that later.
I also tried excluding either the unixsocket or the enxio dependencies in maven, but doing that causes
NoClassDefFoundErrors
, so both are clearly needed.