Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 4c37fdd

Browse files
committed
vizceral: use rsocket-rpc
1 parent c4ad229 commit 4c37fdd

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

vizceral/build.gradle

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,27 @@ dependencies {
99
protobuf project (':viz-idl')
1010
compile project (':client')
1111
compile project (':tracing-openzipkin')
12+
compile 'io.rsocket.rpc:protobuf-rpc:0.1.2'
1213
}
1314

14-
def protocPluginBaseName = "proteus-java-${osdetector.os}-${osdetector.arch}"
15-
def javaPluginPath = "$rootDir/protobuf-rpc/build/exe/java_plugin/$protocPluginBaseName"
16-
1715
protobuf {
1816
generatedFilesBaseDir = "${projectDir}/src/generated"
1917

2018
protoc {
2119
artifact = 'com.google.protobuf:protoc:3.6.0'
2220
}
2321
plugins {
24-
proteus {
25-
path = javaPluginPath
22+
rsocketRpc {
23+
artifact = 'io.rsocket.rpc:protobuf-rpc:0.1.2'
2624
}
2725
}
2826
generateProtoTasks {
2927
all().each { task ->
30-
task.dependsOn ':protobuf-rpc:java_pluginExecutable'
31-
// Recompile protos when the codegen has been changed
32-
task.inputs.file javaPluginPath
3328
// Recompile protos when build.gradle has been changed, because
3429
// it's possible the version of protoc has been changed.
3530
task.inputs.file "${rootProject.projectDir}/build.gradle"
3631
task.plugins {
37-
proteus {}
32+
rsocketRpc {}
3833
}
3934
}
4035
}
@@ -44,10 +39,10 @@ idea {
4439
module {
4540
sourceDirs += file("src/main/proto")
4641
sourceDirs += file("src/generated/main/java")
47-
sourceDirs += file("src/generated/main/proteus")
42+
sourceDirs += file("src/generated/main/rsocketRpc")
4843

4944
generatedSourceDirs += file('src/generated/main/java')
50-
generatedSourceDirs += file('src/generated/main/proteus')
45+
generatedSourceDirs += file('src/generated/main/rsocketRpc')
5146
}
5247
}
5348

0 commit comments

Comments
 (0)