org.groovymc.modsdotgroovy.gradle.tasks.ModsDotGroovyToYml.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
A Gradle plugin for creation of mods metadata file from a groovy file
The newest version!
package org.groovymc.modsdotgroovy.gradle.tasks
import groovy.transform.CompileStatic
import org.gradle.api.tasks.CacheableTask
import org.yaml.snakeyaml.DumperOptions
import org.yaml.snakeyaml.Yaml
@CacheableTask
@CompileStatic
abstract class ModsDotGroovyToYml extends AbstractMDGConvertTask {
@Override
protected String writeData(Map data) {
final yamlWriter = new Yaml(new DumperOptions().tap {
prettyFlow = true
})
return yamlWriter.dump(data)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy