Skip to content

Support use of snakeyaml-engine on java 8+ and legacy snakeyaml on Java 7#585

Open
mcculls wants to merge 4 commits intomasterfrom
mcculls/use-snakeyaml-engine-on-java8
Open

Support use of snakeyaml-engine on java 8+ and legacy snakeyaml on Java 7#585
mcculls wants to merge 4 commits intomasterfrom
mcculls/use-snakeyaml-engine-on-java8

Conversation

@mcculls
Copy link
Contributor

@mcculls mcculls commented Feb 11, 2026

Note the default "jar-with-dependencies" artifact still only contains the legacy snakeyaml library, to avoid any increase in its size. If we wanted to include both snakeyaml and snakeyaml-engine libraries then "jar-with-dependencies" would increase by ~290Kb

At runtime the appropriate YAML parser is loaded based on the Java version and which library is available on the runtime class-path.

This means downstream consumers that only use Java 8+ can decide to include the snakeyaml-engine library when embedding JMXFetch and skip the legacy snakeyaml library.

@mcculls mcculls force-pushed the mcculls/use-snakeyaml-engine-on-java8 branch from 1249d98 to bddeb5d Compare February 11, 2026 21:51
@mcculls mcculls force-pushed the mcculls/use-snakeyaml-engine-on-java8 branch from bddeb5d to 631025a Compare February 12, 2026 12:01
@mcculls mcculls changed the title WIP: use snakeyaml-engine on java 8+ and legacy snakeyaml on Java 7 Support use of snakeyaml-engine on java 8+ and legacy snakeyaml on Java 7 Feb 12, 2026
@mcculls mcculls removed the wip label Feb 12, 2026
@mcculls mcculls marked this pull request as ready for review February 12, 2026 12:13
@mcculls mcculls requested a review from a team as a code owner February 12, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments