Yaml

Adds support to Yaml files

The Yaml module is a very small module that only adds one class, the YamlFile class. This module lets you create, read and write to yaml files with ease, all while using the JSky file system.

Adding the dependency

Once you have added the repository, you can add the base and yaml modules to your project.

Gradle Kotlin
// Replace (version) with the version you want to use.

// Base module (Required)
implementation "net.codersky.jsky:base:(version)"

// Yaml module
implementation "net.codersky.jsky:yaml:(version)"
Gradle Groovy
// Replace (version) with the version you want to use.

// Base module (Required)
implementation "net.codersky.jsky:base:(version)"
// Yaml module
implementation "net.codersky.jsky:yaml:(version)"
Maven
<!-- Replace (version) with the version you want to use. -->

<!-- Base module (Required) -->
<dependency>
  <groupId>net.codersky.jsky</groupId>
  <artifactId>base</artifactId>
  <version>(version)</version>
</dependency>
<!-- Yaml module -->
<dependency>
  <groupId>net.codersky.jsky</groupId>
  <artifactId>yaml</artifactId>
  <version>(version)</version>
</dependency>

Excluding dependencies

Skip this if you don't really know what it means, this is for very specific use cases only.

This module provides the following dependencies:

  • SnakeYaml - org.yaml.snakeyaml

You may want to exclude them to reduce jar size if they are already present on your environment.

Last updated

Was this helpful?