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 {} } } }