This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SDi-RPC/build.gradle

34 lines
664 B
Groovy
Raw Normal View History

2023-11-08 07:08:45 +00:00
plugins {
id 'java'
id 'com.google.protobuf' version '0.9.4'
}
group = 'ch.hevs.sdi.grpc'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
runtimeOnly 'io.grpc:grpc-netty-shaded:1.58.0'
implementation 'io.grpc:grpc-protobuf:1.58.0'
implementation 'io.grpc:grpc-stub:1.58.0'
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.22.3"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.58.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}