Open paulvickers opened 8 years ago
Update:
I uninstalled and reinstalled asciidoctor-mathematical. Now I get a series of jruby failures, essentially failing to build the gem. Here's the output in a gist: https://gist.github.com/paulvickers/396d7ec9868e20e1d0dbaeef2a170e0b
Indeed, you're not going to be able to use asciidoctor-mathematical from Gradle because mathematical uses a C extension (without a Java extension) and JRuby no longer supports C extensions. Creating a gem that uses a C extension without also providing a Java extension is considered to be bad practice. The only way to use asciidoctor-mathematical is to use the Asciidoctor via Ruby MRI (either via the asciidoctor command or the Ruby API).
gem list reveals:
By default, the Gradle plugin (at least the latest snapshot) does not rely on the Ruby on your system. Instead, it uses JRuby in a self-contained environment within the build. The gems get downloaded and installed into the build directory and used from there.
I should like to say thanks to Dan et al for this brilliant project. It has come on a long way in the last two years and it's exciting to see it develop so well.
Thanks! And thanks to the grassroots financial support, I'm able to continue working on it every single day (above and beyond contributions that come as part of working on contracts).
To summarize, you did everything right to add a gem to the Ruby runtime. You just can't use gems that only have C extensions.
I recommend opening a ticket in mathematical to allow it to work in JRuby. I think it's very unfair to develop a gem that excludes the JRuby community.
Thanks. I've opened an issue over in mathematical.
Is there any solution for this issue, yet?
In the
asciidoc-diagram-to-html-example/build.gradle
we find a way to include a gem in the build:I would like to use
asciidoctor-mathematical
in the pdf task of my ownbuild.gradle
. So, as a test, I replaced the asciidoctor-diagram references with asciidoctor-mathematical:I get the error:
Is this a problem with my gem environment (brew upgrade seemed to mess things up yesterday) or is it an issue with asciidoctor-gradle?
gem list
reveals:gem env
gives:but
which ruby
gives/usr/local/bin/ruby
By the way, I should like to say thanks to Dan et al for this brilliant project. It has come on a long way in the last two years and it's exciting to see it develop so well.