Skip to content

Commit

Permalink
[FAB-6415] Add javax.annotation dependency for Java 11
Browse files Browse the repository at this point in the history
Java 11 has cut down the modules that are bundled in
the core, including javax.annotation which is used by
the generated protobuf code. Need to add this as an
explicit dependency.

Signed-off-by: Simon Stone <[email protected]>
Change-Id: Ied6e6de9c9a8118e16f32eec9deefae6deb395e0
  • Loading branch information
Simon Stone committed Sep 11, 2019
1 parent 66e9079 commit 887153c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fabric-chaincode-protos/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ dependencies {
compile 'io.grpc:grpc-netty-shaded:1.9.0'
compile 'io.grpc:grpc-protobuf:1.9.0'
compile 'io.grpc:grpc-stub:1.9.0'
// Required if using Java 11+ as no longer bundled in the core libraries
compile 'javax.annotation:javax.annotation-api:1.3.2'
}

protobuf {
Expand Down

0 comments on commit 887153c

Please sign in to comment.