org.groovymc.modsdotgroovy.gradle.tasks.ModsDotGroovyToToml.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 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