From: Markus Koschany <apo@debian.org>
Date: Wed, 28 Dec 2016 20:48:09 +0100
Subject: snakeyaml

Dumper and Loader classes have long been dreprecated and are no longer
available in Debian's version of SnakeYaml. This patch directly uses the Yaml
class and fixes a build failure.

Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844841
Origin: http://pkgs.fedoraproject.org/cgit/rpms/jruby-maven-plugins.git/tree/snakeyaml-1.16.patch
Forwarded: no
---
 .../java/de/saumya/mojo/gems/spec/yaml/YamlGemSpecificationIO.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/YamlGemSpecificationIO.java b/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/YamlGemSpecificationIO.java
index 11eb133..783c830 100644
--- a/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/YamlGemSpecificationIO.java
+++ b/ruby-tools/src/main/java/de/saumya/mojo/gems/spec/yaml/YamlGemSpecificationIO.java
@@ -3,9 +3,7 @@ package de.saumya.mojo.gems.spec.yaml;
 import java.io.IOException;
 
 import org.codehaus.plexus.component.annotations.Component;
-import org.yaml.snakeyaml.Dumper;
 import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Loader;
 import org.yaml.snakeyaml.Yaml;
 import org.yaml.snakeyaml.constructor.Constructor;
 
@@ -37,7 +35,6 @@ public class YamlGemSpecificationIO implements GemSpecificationIO {
     protected Yaml getYaml() {
         if (this._yaml == null) {
             final Constructor constructor = new MappingConstructor();
-            final Loader loader = new Loader(constructor);
 
             final DumperOptions dumperOptions = new DumperOptions();
             dumperOptions.setExplicitStart(true);
@@ -45,9 +42,8 @@ public class YamlGemSpecificationIO implements GemSpecificationIO {
             dumperOptions.setDefaultScalarStyle(DumperOptions.ScalarStyle.PLAIN);
 
             final MappingRepresenter representer = new MappingRepresenter();
-            final Dumper dumper = new Dumper(representer, dumperOptions);
 
-            this._yaml = new Yaml(loader, dumper);
+            this._yaml = new Yaml(constructor, representer, dumperOptions);
         }
 
         return this._yaml;
