From 15a1b64b849ecf4d01ce8fb1a0f3dee685c8c31f Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Thu, 8 Nov 2018 14:58:46 -0800 Subject: [PATCH] The 0.8.7 release --- README.md | 8 ++++---- build.gradle | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7be0b0b4..5543f429 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ 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 { @@ -28,7 +28,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7' } } ``` @@ -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' } } ``` @@ -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" } ``` diff --git a/build.gradle b/build.gradle index 5bf60741..c2a8faa5 100644 --- a/build.gradle +++ b/build.gradle @@ -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") @@ -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