File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ For more information about the Protobuf Compiler, please refer to
20
20
[ Google Developers Site] ( https://developers.google.com/protocol-buffers/docs/reference/java-generated?csw=1 ) .
21
21
22
22
## Latest Version
23
- The latest version is `` 0.8.6 `` . It requires at least __ Gradle 2.12__ and __ Java 8__ .
23
+ The latest version is `` 0.8.7 `` . It requires at least __ Gradle 2.12__ and __ Java 8__ .
24
24
It is available on Maven Central. To add dependency to it:
25
25
``` gradle
26
26
buildscript {
27
27
repositories {
28
28
mavenCentral()
29
29
}
30
30
dependencies {
31
- classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6 '
31
+ classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7 '
32
32
}
33
33
}
34
34
```
@@ -43,7 +43,7 @@ buildscript {
43
43
mavenLocal()
44
44
}
45
45
dependencies {
46
- classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6 -SNAPSHOT'
46
+ classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8 -SNAPSHOT'
47
47
}
48
48
}
49
49
```
@@ -86,7 +86,7 @@ The order of the plugins doesn't matter:
86
86
87
87
``` gradle
88
88
plugins {
89
- id "com.google.protobuf" version "0.8.6 "
89
+ id "com.google.protobuf" version "0.8.7 "
90
90
id "java"
91
91
}
92
92
```
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ apply plugin: 'com.gradle.plugin-publish'
19
19
apply plugin : ' com.github.ben-manes.versions'
20
20
21
21
group = ' com.google.protobuf'
22
- version = ' 0.8.7-SNAPSHOT '
22
+ version = ' 0.8.7'
23
23
24
24
ext. isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
25
25
@@ -186,14 +186,12 @@ pluginBundle {
186
186
}
187
187
}
188
188
189
- // Releases must be built on Java 1.7. Building on Java 1.8 will make the
190
- // plugin runnable only on Java 1.8.
191
- // See https://github.com/grpc/grpc-java/issues/805
189
+ // Releases must be built on Java 1.8.
192
190
tasks. create(" checkJavaVersion" ). doLast {
193
191
JavaVersion javaVersion = JavaVersion . current()
194
- if (! javaVersion. isJava7 ()) {
192
+ if (! javaVersion. isJava8 ()) {
195
193
throw new GradleException (
196
- " The plugin must be published under Java 1.7 but ${ javaVersion} is found" )
194
+ " The plugin must be published under Java 1.8 but ${ javaVersion} is found" )
197
195
}
198
196
}
199
197
[uploadArchives, publishPlugins]* . dependsOn checkJavaVersion
You can’t perform that action at this time.
0 commit comments