Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

Bump commonmark to 0.17.+

Open yvan-botella opened this issue 3 years ago • 2 comments

  • Markwon version: 4.6.2

Since [email protected] (also 1.7.1 available) https://github.com/commonmark/commonmark-java/releases/tag/commonmark-parent-0.17.0

Maven groupId has changed, which when using Commonmark and Markwon cause Duplicate class … found in modules

jetified-commonmark-0.13.0 (com.atlassian.commonmark:commonmark:0.13.0) and
jetified-commonmark-0.17.1 (org.commonmark:commonmark:0.17.1)

Is it possible to bump version of Commonmark to 0.17.1 ?

yvan-botella avatar Mar 09 '21 09:03 yvan-botella

Hello @yvan-botella ,

yes, updating commonmark-java version is definitely on the roadmap. Unfortunately it requires some effort, for which I cannot allocate enough time right now.

As a possible workaround I think that you can try forcing updated dependencies. Try excluding com.atlassian.commonmark modules from all markdown dependencies and then explicitly adding org.commonmark modules in your project dependencies block. A possible way of excluding is discussed in #148 . Unfortunately this way there is no guarantee that there are no conflicts, so please check that your application behaves properly in runtime (if it compiles at all)

noties avatar Mar 09 '21 15:03 noties

i try to exlude com.atlassian.commonmark to all markwon deps, got crash in runtime @noties

rakaadinugroho avatar Feb 26 '24 09:02 rakaadinugroho