raml-org / raml-java-parser

(deprecated) A RAML parser based on SnakeYAML written in Java
Other
174 stars 121 forks source link

Update snakeyaml to 1.23 in raml-parser (0.8) #644

Closed gzunino closed 5 years ago

gzunino commented 5 years ago

STUDIO-13040

After the upgrade to raml-parser-2 1.0.38 parsing #%RAML 0.8 fails with

java.lang.NoSuchMethodError: org.yaml.snakeyaml.nodes.SequenceNode.getFlowStyle()Ljava/lang/Boolean;

This is due in raml-parser-2 1.0.38 the snakeyaml dependency was updated to 1.23, but raml-parser-1 (0.8.31) is still using snakeyaml 1.15.

The issue is in how studio resolves dependencies (pomDependencies.xml) as jars from apikit and raml-parser, which is limited to have only one version of a transitive dependency in the same plugin. So, only snakeyaml 1.23 is used and raml-parser-1 can't work with it.

The proposal is to update to 1.23 in raml-parser-1 also which seems to work just fine.