All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.groovymc.modsdotgroovy.gradle.tasks.ModsDotGroovyToToml.groovy Maven / Gradle / Ivy

The newest version!
package org.groovymc.modsdotgroovy.gradle.tasks

import com.moandjiezana.toml.TomlWriter
import groovy.transform.CompileStatic
import org.gradle.api.file.ProjectLayout
import org.gradle.api.tasks.CacheableTask

import javax.inject.Inject

@CacheableTask
@CompileStatic
abstract class ModsDotGroovyToToml extends AbstractMDGConvertTask {
    private static final TomlWriter TOML_WRITER = new TomlWriter()

    ModsDotGroovyToToml() {
        this.outputName.convention('mods.toml')
    }

    @Override
    protected String writeData(Map data) {
        return TOML_WRITER.write(data)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy