muzzle { pass { group = "io.grpc" module = "grpc-core" versions = "[1.5.0,)" } } buildscript { repositories { mavenCentral() } dependencies { classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10' } } apply from: "${rootDir}/gradle/java.gradle" apply plugin: 'idea' apply plugin: 'com.google.protobuf' def grpcVersion = '1.5.0' protobuf { protoc { // Download compiler rather than using locally installed version: artifact = 'com.google.protobuf:protoc:3.3.0' } plugins { grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" } } generateProtoTasks { all()*.plugins { grpc {} } } } apply plugin: 'org.unbroken-dome.test-sets' testSets { latestDepTest { dirName = 'test' } } dependencies { compileOnly group: 'io.grpc', name: 'grpc-core', version: grpcVersion testCompile group: 'io.grpc', name: 'grpc-netty', version: grpcVersion testCompile group: 'io.grpc', name: 'grpc-protobuf', version: grpcVersion testCompile group: 'io.grpc', name: 'grpc-stub', version: grpcVersion latestDepTestCompile sourceSets.test.output // include the protobuf generated classes latestDepTestCompile group: 'io.grpc', name: 'grpc-netty', version: '+' latestDepTestCompile group: 'io.grpc', name: 'grpc-protobuf', version: '+' latestDepTestCompile group: 'io.grpc', name: 'grpc-stub', version: '+' }