OkaeriPoland / okaeri-configs

Simple Java/POJO config library written with love and Lombok
MIT License
77 stars 11 forks source link

YamlSnakeYamlConfigurer isn't compatible with latest versions of snakeyaml #41

Closed rchomczyk closed 1 year ago

rchomczyk commented 1 year ago

Describe the bug Because of use of deprecated constructor in YamlSnakeYamlConfigurer, it fails to run with latest version of snakeyaml, as deprecated constructors were removed in newer versions.

To Reproduce Steps to reproduce the behavior:

  1. Create project with use of okaeri-configs-yaml-snakeyaml
  2. Exclude default snakeyaml library
  3. Include latest snakeyaml library
  4. Attempt to create any configuration

Expected behavior Running without throwing exception, caused by missing constructor.

Library version 5.0.0-beta.4

Stacktrace

Exception in thread "main" java.lang.NoSuchMethodError: org.yaml.snakeyaml.constructor.Constructor: method 'void <init>()' not found
        at eu.okaeri.configs.yaml.snakeyaml.YamlSnakeYamlConfigurer.<init>(YamlSnakeYamlConfigurer.java:44)