Skip to content

Commit 887153c

Browse files
author
Simon Stone
committed
[FAB-6415] Add javax.annotation dependency for Java 11
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
1 parent 66e9079 commit 887153c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fabric-chaincode-protos/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ dependencies {
5252
compile 'io.grpc:grpc-netty-shaded:1.9.0'
5353
compile 'io.grpc:grpc-protobuf:1.9.0'
5454
compile 'io.grpc:grpc-stub:1.9.0'
55+
// Required if using Java 11+ as no longer bundled in the core libraries
56+
compile 'javax.annotation:javax.annotation-api:1.3.2'
5557
}
5658

5759
protobuf {

0 commit comments

Comments
 (0)