mirror of https://github.com/grpc/grpc-java.git
31 lines
740 B
Groovy
31 lines
740 B
Groovy
description = "gRPC: Testing Protos"
|
|
|
|
// Add dependency on the protobuf plugin
|
|
buildscript {
|
|
repositories {
|
|
maven {
|
|
// The google mirror is less flaky than mavenCentral()
|
|
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath libraries.protobuf_plugin
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':grpc-protobuf'),
|
|
project(':grpc-stub')
|
|
testCompile libraries.truth
|
|
}
|
|
|
|
configureProtoCompilation()
|
|
|
|
// Let intellij projects refer to generated code
|
|
idea {
|
|
module {
|
|
sourceDirs += file("${projectDir}/src/generated/main/java")
|
|
sourceDirs += file("${projectDir}/src/generated/main/grpc")
|
|
}
|
|
}
|