Skip to content

Commit 90706dc

Browse files
committed
Rename the codegen binary from java_plugin to protoc-gen-grpc-java
1 parent e8afa3c commit 90706dc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ subprojects {
6666
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
6767
splitRootDir = splitRootDir.getPath().split(":", 2)[1]
6868
}
69-
javaPluginPath = "$splitRootDir/compiler/build/binaries/java_pluginExecutable/java_plugin$exeSuffix"
69+
protocPluginBaseName = 'protoc-gen-grpc-java'
70+
javaPluginPath = "$splitRootDir/compiler/build/binaries/java_pluginExecutable/$protocPluginBaseName$exeSuffix"
7071
}
7172

7273
dependencies {

compiler/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ buildscript {
1515
}
1616

1717
executables {
18-
java_plugin {}
18+
java_plugin {
19+
baseName "$protocPluginBaseName"
20+
}
1921
}
2022

2123
dependencies {

compiler/src/test/run_nano_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OUTPUT_FILE="$TEST_TMP_DIR/TestServiceGrpc.src.jar"
1212
GRPC_FILE="$TEST_TMP_DIR/io/grpc/testing/integration/TestServiceGrpc.java"
1313
GOLDEN_FILE="golden/TestServiceNano.java.txt"
1414

15-
protoc --plugin=protoc-gen-java_rpc=../../build/binaries/java_pluginExecutable/java_plugin \
15+
protoc --plugin=protoc-gen-java_rpc=../../build/binaries/java_pluginExecutable/protoc-gen-grpc-java \
1616
--java_rpc_out=nano=true:"$OUTPUT_FILE" "$INPUT_FILE" && \
1717
unzip -o -d "$TEST_TMP_DIR" "$OUTPUT_FILE" && \
1818
diff "$GRPC_FILE" "$GOLDEN_FILE" && \

0 commit comments

Comments
 (0)