Split protobuf into its own project

We don't want core to depend on protobuf.
This commit is contained in:
Eric Anderson 2015-04-10 15:40:44 -07:00
parent 1e257c440e
commit e23f899491
8 changed files with 14 additions and 5 deletions

View File

@ -21,8 +21,8 @@ executables {
} }
dependencies { dependencies {
compile project(':grpc-stub'), testCompile project(':grpc-protobuf'),
libraries.protobuf project(':grpc-stub')
} }
binaries.all { binaries.all {

View File

@ -5,8 +5,7 @@ plugins {
description = 'gRPC: Core' description = 'gRPC: Core'
dependencies { dependencies {
compile libraries.protobuf, compile libraries.guava,
libraries.guava,
libraries.jsr305 libraries.jsr305
} }

View File

@ -15,7 +15,7 @@ buildscript {
dependencies { dependencies {
compile project(':grpc-core'), compile project(':grpc-core'),
project(':grpc-netty'), project(':grpc-netty'),
project(':grpc-okhttp'), project(':grpc-protobuf'),
project(':grpc-stub'), project(':grpc-stub'),
libraries.jsonp libraries.jsonp
} }

View File

@ -21,6 +21,7 @@ dependencies {
compile project(':grpc-core'), compile project(':grpc-core'),
project(':grpc-netty'), project(':grpc-netty'),
project(':grpc-okhttp'), project(':grpc-okhttp'),
project(':grpc-protobuf'),
project(':grpc-stub'), project(':grpc-stub'),
project(':grpc-testing'), project(':grpc-testing'),
libraries.junit, libraries.junit,

7
protobuf/build.gradle Normal file
View File

@ -0,0 +1,7 @@
description = 'gRPC: Protobuf'
dependencies {
compile project(':grpc-core'),
libraries.protobuf,
libraries.guava
}

View File

@ -3,6 +3,7 @@ include ":grpc-core"
include ":grpc-stub" include ":grpc-stub"
include ":grpc-auth" include ":grpc-auth"
include ":grpc-okhttp" include ":grpc-okhttp"
include ":grpc-protobuf"
include ":grpc-nano" include ":grpc-nano"
include ":grpc-netty" include ":grpc-netty"
include ":grpc-testing" include ":grpc-testing"
@ -16,6 +17,7 @@ project(':grpc-core').projectDir = "$rootDir/core" as File
project(':grpc-stub').projectDir = "$rootDir/stub" as File project(':grpc-stub').projectDir = "$rootDir/stub" as File
project(':grpc-auth').projectDir = "$rootDir/auth" as File project(':grpc-auth').projectDir = "$rootDir/auth" as File
project(':grpc-okhttp').projectDir = "$rootDir/okhttp" as File project(':grpc-okhttp').projectDir = "$rootDir/okhttp" as File
project(':grpc-protobuf').projectDir = "$rootDir/protobuf" as File
project(':grpc-nano').projectDir = "$rootDir/nano" as File project(':grpc-nano').projectDir = "$rootDir/nano" as File
project(':grpc-netty').projectDir = "$rootDir/netty" as File project(':grpc-netty').projectDir = "$rootDir/netty" as File
project(':grpc-testing').projectDir = "$rootDir/testing" as File project(':grpc-testing').projectDir = "$rootDir/testing" as File