Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 2.7 KB

README.md

File metadata and controls

69 lines (48 loc) · 2.7 KB

gRPC Proof-of-Concept


🚧 JPMS disabled: Because of grpc/grpc-java#3522 JPMS had to be disabled by renaming module-info.java to module-info.java.disabled.


This is a proof-of-concept for using gRPC. In addition to that, the project is based on Java 11 and uses its module system.

IDE Support

For IntelliJ Idea it is recommended to install:

in order to get support editing .proto files.

Notes

Troubleshooting

javax.annotation does not exist

Caused by grpc/grpc-java#3633, the annotation to mark generated classes javax.annotation.Generated is not available. Some projects mentioned a similar problem — the overall problem is to support Java 8- and Java 9+ in parallel.

While you would use javax.annotation.processing.Generated in Java 9+ projects, it is javax.annotation.Generated for Java 8-. Current workaround for Java 11 is to add the following dependency (for example as provided scope):

<dependency>
  <groupId>javax.annotation</groupId>
  <artifactId>javax.annotation-api</artifactId>
  <version>1.3.1</version>
</dependency>

See Also