Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ apply plugin: 'signing'
group = 'io.dgraph'
archivesBaseName = 'dgraph4j'
version = '21.12.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8

// Upgrade to Java SE 11 to match updated protobuf-protoc version.
// WARNING: Needs local toolchain upgrade from Java 8 to Java 11.
sourceCompatibility = 11
targetCompatibility = 11

def grpcVersion = '1.65.1'
def dgraph4jVersion = "$version"
Expand All @@ -55,7 +58,7 @@ protobuf {
// The version of protoc must match protobuf-java. If you don't depend on
// protobuf-java directly, you will be transitively depending on the
// protobuf-java version that grpc depends on.
artifact = "com.google.protobuf:protoc:3.2.0"
artifact = "com.google.protobuf:protoc:4.27.2"
}
plugins {
grpc {
Expand Down Expand Up @@ -117,6 +120,11 @@ dependencies {
compile "io.grpc:grpc-netty:${grpcVersion}"
compile "io.grpc:grpc-stub:${grpcVersion}"

// Explicit matching of protobuf-java and protoc versions to address
// compilation errors arising due to transitive dependency on the version of
// protobuf-java that grpc depends on.
compile "com.google.protobuf:protobuf-java:4.27.2"

testCompile "io.opencensus:opencensus-api:${openCensusVersion}"
testCompile "io.opencensus:opencensus-exporter-trace-jaeger:${openCensusVersion}"
testRuntime "io.opencensus:opencensus-impl:${openCensusVersion}"
Expand Down