diff options
Diffstat (limited to 'rpc-common/build.gradle')
-rw-r--r-- | rpc-common/build.gradle | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/rpc-common/build.gradle b/rpc-common/build.gradle new file mode 100644 index 0000000..81bf422 --- /dev/null +++ b/rpc-common/build.gradle @@ -0,0 +1,45 @@ +plugins { + id 'java' + id "com.google.protobuf" version "0.8.14" + id 'idea' +} + +group 'moe.yuuta' +version '1.0' + +def protocVersion = protobufVersion + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + +dependencies { + compileOnly 'javax.annotation:javax.annotation-api:1.3.2' + implementation "io.vertx:vertx-core:${project.vertxVersion}" + implementation "io.vertx:vertx-grpc:${project.vertxVersion}" + implementation "io.grpc:grpc-protobuf:${project.grpcVersion}" + implementation "io.grpc:grpc-stub:${project.grpcVersion}" +} + +test { + useJUnitPlatform() +} + +protobuf { + protoc { + artifact = "com.google.protobuf:protoc:$protocVersion" + } + plugins { + grpc { + artifact = "io.grpc:protoc-gen-grpc-java:${project.grpcVersion}" + } + vertx { + artifact = "io.vertx:vertx-grpc-protoc-plugin:${project.vertxVersion}" + } + } + generateProtoTasks { + all()*.plugins { + grpc + vertx + } + } +}
\ No newline at end of file |