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

co.tomlee.gradle.plugins.protoc.GradleProtocPluginExtension.groovy Maven / Gradle / Ivy

Go to download

Gradle plugin for protoc, the code generator typically associated with Google's Protocol Buffers

There is a newer version: 0.0.3
Show newest version
package co.tomlee.gradle.plugins.protoc

import org.gradle.api.Project;

class GradleProtocPluginExtension {
    String executable = "protoc"
    List path = []
    final Project project
    
    public GradleProtocPluginExtension(final Project project) {
        this.project = project
    }
    
    def executable(String executable) {
        this.executable = executable
    }
    
    def path(String path) {
        final File file = new File(path)
        if (file.isAbsolute()) {
            this.path << file
        }
        else {
            this.path << project.file(path)
        }
    }
    
    def path(File path) {
        this.path << path
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy