co.tomlee.gradle.plugins.protoc.GradleProtocPlugin.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-protoc-plugin Show documentation
Show all versions of gradle-protoc-plugin Show documentation
Gradle plugin for protoc, the code generator typically associated with Google's Protocol Buffers
package co.tomlee.gradle.plugins.protoc
import org.gradle.api.Plugin
import org.gradle.api.Project
import co.tomlee.gradle.plugins.protoc.tasks.ProtobufCompile;
class GradleProtocPlugin implements Plugin {
@Override
public void apply(Project project) {
project.extensions.create("protoc", GradleProtocPluginExtension, project)
project.ext.ProtobufCompile = ProtobufCompile
}
}