2014-12-16 01:58:05 +08:00
|
|
|
subprojects {
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: "maven"
|
2015-01-22 06:30:14 +08:00
|
|
|
apply plugin: "idea"
|
2014-12-16 01:58:05 +08:00
|
|
|
|
2015-01-28 02:25:39 +08:00
|
|
|
group = "io.grpc"
|
2014-12-16 01:58:05 +08:00
|
|
|
version = "0.1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
sourceCompatibility = 1.6
|
|
|
|
targetCompatibility = 1.6
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
|
2015-01-27 06:03:11 +08:00
|
|
|
compileJava {
|
2015-02-14 08:39:54 +08:00
|
|
|
options.compilerArgs << "-Xlint:unchecked"
|
2015-02-25 06:59:32 +08:00
|
|
|
options.encoding = "UTF-8"
|
2015-01-27 06:03:11 +08:00
|
|
|
}
|
|
|
|
|
2015-02-14 08:21:53 +08:00
|
|
|
ext {
|
|
|
|
libraries = [
|
|
|
|
guava: 'com.google.guava:guava:18.0',
|
2015-02-24 04:03:59 +08:00
|
|
|
// used to collect benchmark results
|
|
|
|
hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4',
|
2015-02-26 02:17:23 +08:00
|
|
|
hpack: 'com.twitter:hpack:0.10.1',
|
2015-02-24 04:03:59 +08:00
|
|
|
javaee_api: 'javax:javaee-api:7.0',
|
|
|
|
jsonp: 'org.glassfish:javax.json:1.0.4',
|
2015-02-14 08:21:53 +08:00
|
|
|
jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
|
|
|
|
oauth_client: 'com.google.oauth-client:google-oauth-client:1.18.0-rc',
|
|
|
|
okhttp: 'com.squareup.okhttp:okhttp:2.2.0',
|
2015-02-26 23:53:17 +08:00
|
|
|
protobuf: 'com.google.protobuf:protobuf-java:3.0.0-alpha-2',
|
|
|
|
protobuf_nano: 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2',
|
2015-02-24 04:03:59 +08:00
|
|
|
protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1',
|
2015-02-14 08:21:53 +08:00
|
|
|
|
|
|
|
// TODO: Unreleased dependencies.
|
|
|
|
// These must already be installed in the local maven repository.
|
|
|
|
netty: 'io.netty:netty-codec-http2:5.0.0.Alpha2-SNAPSHOT',
|
|
|
|
|
|
|
|
// Test dependencies.
|
|
|
|
junit: 'junit:junit:4.11',
|
|
|
|
mockito: 'org.mockito:mockito-core:1.10.8'
|
|
|
|
]
|
|
|
|
|
|
|
|
// Determine the correct version of Jetty ALPN boot to use based
|
|
|
|
// on the Java version.
|
|
|
|
def alpnboot_version = '8.1.2.v20141202'
|
|
|
|
if (JavaVersion.current().ordinal() < JavaVersion.VERSION_1_8.ordinal()) {
|
|
|
|
alpnboot_version = '7.1.2.v20141202'
|
|
|
|
}
|
|
|
|
|
|
|
|
alpnboot_package_name = 'org.mortbay.jetty.alpn:alpn-boot:' + alpnboot_version
|
|
|
|
}
|
2014-12-16 01:58:05 +08:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile libraries.junit,
|
|
|
|
libraries.mockito
|
|
|
|
}
|
|
|
|
}
|