Search Gradle plugins

com.google.protobuf

The Protobuf plugin provides protobuf compilation to your project.

https://github.com/google/protobuf-gradle-plugin

Version 0.8.10 (latest)

Created 11 July 2019.

The Protobuf plugin provides protobuf compilation to your project.

Using the plugins DSL:

plugins {
  id "com.google.protobuf" version "0.8.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.10"
  }
}

apply plugin: "com.google.protobuf"

Using the plugins DSL:

plugins {
  id("com.google.protobuf") version "0.8.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.10")
  }
}

apply(plugin = "com.google.protobuf")

Learn how to apply plugins to subprojects