diff --git a/RELEASING.md b/RELEASING.md index a22319055ea..1062ebc4d15 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -64,6 +64,7 @@ $ MAJOR=1 MINOR=7 PATCH=0 # Set appropriately for new release $ VERSION_FILES=( build.gradle android-interop-testing/app/build.gradle + core/src/main/java/io/grpc/internal/GrpcUtil.java examples/build.gradle examples/pom.xml examples/android/helloworld/app/build.gradle diff --git a/core/src/main/java/io/grpc/internal/GrpcUtil.java b/core/src/main/java/io/grpc/internal/GrpcUtil.java index 406802f14cc..486c57760c1 100644 --- a/core/src/main/java/io/grpc/internal/GrpcUtil.java +++ b/core/src/main/java/io/grpc/internal/GrpcUtil.java @@ -194,7 +194,7 @@ public byte[] parseAsciiString(byte[] serialized) { public static final Splitter ACCEPT_ENCODING_SPLITTER = Splitter.on(',').trimResults(); - private static final String IMPLEMENTATION_VERSION = getImplementationVersion(); + private static final String IMPLEMENTATION_VERSION = "1.9.0-SNAPSHOT"; // CURRENT_GRPC_VERSION /** * The default delay in nanos before we send a keepalive. @@ -736,12 +736,4 @@ static boolean iterableContains(Iterable iterable, T item) { } private GrpcUtil() {} - - private static String getImplementationVersion() { - String version = GrpcUtil.class.getPackage().getImplementationVersion(); - if (version != null) { - return "/" + version; - } - return ""; - } }