Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Gradle Error With JDK 10 on Win 10 #87

Open
tajmone opened this issue Sep 4, 2018 · 6 comments
Open

Gradle Error With JDK 10 on Win 10 #87

tajmone opened this issue Sep 4, 2018 · 6 comments

Comments

@tajmone
Copy link

tajmone commented Sep 4, 2018

On my first run of asciidoctor-fopub, under Windows 10 with JDK 10.0.2 I got the following error:

Initializing application...
Downloading http://services.gradle.org/distributions/gradle-2.8-bin.zip
[ ... ]
Unzipping C:\Users\MYNAME\.gradle\wrapper\dists\gradle-2.8-bin\6b804shgjemjgh821qgf318li1\gradle-2.8-bin.zip to C:\Users\MYNAME\.gradle\wrapper\dists\gradle-2.8-bin\6b804shgjemjgh821qgf318li1

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '10.0.2'.

Any clues?

@tajmone
Copy link
Author

tajmone commented Sep 4, 2018

Possibly related Issues/PRs:

JEP-322 is a modification to the Java versioning scheme to accommodate the time-based release model that the JDK is moving to. Starting with JDK 10-ea build 36, the changes from this version scheme are in play and the version dection logic now breaks because of the addition of the java.version.date to the version output. This commit adjusts for that. Additionally, future LTS releases of the JDK will contain an appended " LTS" as well, so this commit adjuts for that too.

@tajmone
Copy link
Author

tajmone commented Sep 4, 2018

I've worked around the problem by uninstalling JDK 10 and installing JDK 8, and ascidoctor-fopub works fine.

It's a pitty though that it forces to fall back on the old Java version, if you could update it and implement the fixes mentioned at the links above it would really great!

@mojavelinux
Copy link
Member

Thanks for your report.

I'm still looking for a maintainer for this project. I have way too many things on my plate to work on this project, and my interests are elsewhere. But I know there are people who still rely on it and I'd like to see it continue to evolve. I'll file a separate issue to make a more visible request.

@tajmone
Copy link
Author

tajmone commented Oct 15, 2018

I have way too many things on my plate to work on this project, and my interests are elsewhere.

I can imagine, Asciidoctor is such a huge project, interacting with so many other tools and standards that keeping it always up to date with those evolving standards must be a huge task; and then there are all the Asciidoctor-related tools (like this one, and the various editor packages, like Sublime Asciidoctor, ecc.).

I admire your work, and are really greateful to your for it, for I've been following Asciidoctor development in the course of the last four years. I can barely believe that you manage to keep all the pieces of such a complex picture together — for me, just learning to use Asciidoctor forced me to study various standards (DocBook, ERB templates, ecc.), and I only digged into what I need for my personal work.

But having to keep up with all these standards, dependencies, etc., ... it must be quite a challenge (surely, not one for the faint of heart).

I wish I could help more here, but DocBook, XSL, FOP and Gradle are beyond my competence in terms of maintainance.

@mojavelinux
Copy link
Member

Thanks @tajmone!

I try not to think about how many projects I manage because, when I do, I freak out a little bit. But it helps a lot of people and provides a fun challenge for me, both of which keep me going.

@tajmone
Copy link
Author

tajmone commented Jul 25, 2019

As mentioned in #88, it now seems fixed for I've manged to run gradle succesfuly with Java JDK 12!

tajmone added a commit to alan-if/alan-docs that referenced this issue Jul 25, 2019
Finally confirmed that asciidoctor-fopub now works correctly with Java
versions >= 8 (gradle error fixed). Now the project switches to using
Java JDK 12.

- Add note about switching to Java 12.
- Update alan-xsl-fopub documentation.
- Update the submodule pointer to alan-xsl-fopub.

For more info, see:

- asciidoctor/asciidoctor-fopub#87
- asciidoctor/asciidoctor-fopub#88
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants