Skip to content

Commit

Permalink
The 0.8.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangkun83 committed Nov 8, 2018
1 parent 7078c3e commit 15a1b64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ For more information about the Protobuf Compiler, please refer to
[Google Developers Site](https://developers.google.com/protocol-buffers/docs/reference/java-generated?csw=1).

## Latest Version
The latest version is ``0.8.6``. It requires at least __Gradle 2.12__ and __Java 8__.
The latest version is ``0.8.7``. It requires at least __Gradle 2.12__ and __Java 8__.
It is available on Maven Central. To add dependency to it:
```gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7'
}
}
```
Expand All @@ -43,7 +43,7 @@ buildscript {
mavenLocal()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6-SNAPSHOT'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8-SNAPSHOT'
}
}
```
Expand Down Expand Up @@ -86,7 +86,7 @@ The order of the plugins doesn't matter:

```gradle
plugins {
id "com.google.protobuf" version "0.8.6"
id "com.google.protobuf" version "0.8.7"
id "java"
}
```
Expand Down
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'com.github.ben-manes.versions'

group = 'com.google.protobuf'
version = '0.8.7-SNAPSHOT'
version = '0.8.7'

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

Expand Down Expand Up @@ -186,14 +186,12 @@ pluginBundle {
}
}

// Releases must be built on Java 1.7. Building on Java 1.8 will make the
// plugin runnable only on Java 1.8.
// See https://github.com/grpc/grpc-java/issues/805
// Releases must be built on Java 1.8.
tasks.create("checkJavaVersion").doLast {
JavaVersion javaVersion = JavaVersion.current()
if (!javaVersion.isJava7()) {
if (!javaVersion.isJava8()) {
throw new GradleException(
"The plugin must be published under Java 1.7 but ${javaVersion} is found")
"The plugin must be published under Java 1.8 but ${javaVersion} is found")
}
}
[uploadArchives, publishPlugins]*.dependsOn checkJavaVersion
Expand Down

0 comments on commit 15a1b64

Please sign in to comment.