asciidoctor / asciidoctorj-pdf

AsciidoctorJ PDF bundles the Asciidoctor PDF RubyGem (asciidoctor-pdf) so it can be loaded into the JVM using JRuby.
Apache License 2.0
35 stars 17 forks source link

License issue from one dependency #69

Closed mariuszpala closed 2 years ago

mariuszpala commented 2 years ago

Asciidoctorj-pdf library embeds ttfunk gem inside the jar/gems which is the only dependency on GPL license which makes the library impossible to be used in commercial projects. Can this gem be removed from the library?

image

robertpanzer commented 2 years ago

Tbh I don't see much of a difference between the license for prawn and ttfunk: https://github.com/prawnpdf/prawn/blob/master/LICENSE vs https://github.com/prawnpdf/ttfunk/blob/master/LICENSE

Prawn has a dependency on ttfunk, and asciidoctor-pdf heavily relies on prawn, so I assume that it's not possible to go without ttfunk. I'm not an expert in licensing.

@mojavelinux Do you have an idea about Asciidoctor-pdf and licensing?

mojavelinux commented 2 years ago

It's not possible to remove ttfunk alone. The only solution to taking it out of the gem would be to use AsciidoctorJ and point to a gem installation that provides asciidoctor-pdf...essentially using it unbundled. AsciidoctorJ-PDF is merely a convenient distribution for users of AsciidoctorJ.

mariuszpala commented 2 years ago

Does it mean that the license for this library must be changed from Apache to GPL?

mojavelinux commented 2 years ago

No, it does not make sense. We will not be changing the license of this library. The gems are redistributed as part of the jar package, but the source code of those gems is not modified. This is permissible under "Matz's terms for Ruby", which is one of the libraries under which ttfunk is licensed. This is both stated in the README of that project and clarified the developer's themselves in the linked issue. To the best of my knowledge, we are in compliance with those terms.

mariuszpala commented 2 years ago

Everything is fine, it is clarified here: https://github.com/prawnpdf/ttfunk/issues/96 Thank you

robertpanzer commented 2 years ago

Thank you @mojavelinux !!! I wouldn't have been able to answer this.