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

grails.views.gradle.json.JsonViewCompilerTask.groovy Maven / Gradle / Ivy

Go to download

Provides additional view technologies to the Grails framework, including JSON and Markup views.

There is a newer version: 4.0.0-M1
Show newest version
package grails.views.gradle.json

import grails.views.gradle.AbstractGroovyTemplateCompileTask
import groovy.transform.CompileStatic
import org.gradle.api.tasks.Input

/**
 * Concrete implementation that compiles JSON templates
 *
 * @author Graeme Rocher
 */
@CompileStatic
class JsonViewCompilerTask extends AbstractGroovyTemplateCompileTask {

    @Input
    @Override
    String getFileExtension() {
        "gson"
    }

    @Input
    @Override
    String getScriptBaseName() {
        "grails.plugin.json.view.JsonViewTemplate"
    }

    @Input
    @Override
    protected String getCompilerName() {
        "grails.plugin.json.view.JsonViewCompiler"
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy