README.md: Swap to Gradle Plugins DSL

The Plugins DSL has matured and is now preferred. It's also more terse,
which is nice.
This commit is contained in:
Eric Anderson 2019-08-30 08:13:18 -07:00
parent efc14bd299
commit 19942ba039
1 changed files with 2 additions and 9 deletions

View File

@ -124,15 +124,8 @@ For protobuf-based codegen integrated with the Maven build system, you can use
For protobuf-based codegen integrated with the Gradle build system, you can use For protobuf-based codegen integrated with the Gradle build system, you can use
[protobuf-gradle-plugin][]: [protobuf-gradle-plugin][]:
```gradle ```gradle
apply plugin: 'com.google.protobuf' plugins {
id 'com.google.protobuf' version '0.8.8'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
}
} }
protobuf { protobuf {