blob: 3ee7bb2a59269a504e466d2c4bd8f358760c0a77 [file] [log] [blame]
plugins {
id 'com.google.protobuf' version '0.9.5'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'war'
}
repositories {
mavenCentral()
mavenLocal()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
def grpcVersion = '1.78.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protocVersion = '3.25.8'
dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}",
"io.grpc:grpc-servlet:${grpcVersion}",
"io.grpc:grpc-stub:${grpcVersion}"
compileOnly "javax.servlet:javax.servlet-api:4.0.1"
}
protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
plugins { grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" } }
generateProtoTasks {
all()*.plugins { grpc {} }
}
}