blob: 7b3cebf3d4bc95bec319d9428aa9f6886e7d10be [file] [log] [blame]
nathanmittler164b7342014-12-15 09:58:05 -08001subprojects {
2 apply plugin: "java"
3 apply plugin: "maven"
nmittler52f42202015-01-21 14:30:14 -08004 apply plugin: "idea"
nathanmittler164b7342014-12-15 09:58:05 -08005
nmittlerf8314582015-01-27 10:25:39 -08006 group = "io.grpc"
nathanmittler164b7342014-12-15 09:58:05 -08007 version = "0.1.0-SNAPSHOT"
8
9 sourceCompatibility = 1.6
10 targetCompatibility = 1.6
11
12 repositories {
13 mavenCentral()
14 mavenLocal()
15 }
16
nmittler02c953e2015-01-26 14:03:11 -080017 compileJava {
Eric Andersone26608f2015-02-13 16:39:54 -080018 options.compilerArgs << "-Xlint:unchecked"
nmittler02c953e2015-01-26 14:03:11 -080019 }
20
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080021 ext {
22 libraries = [
23 protobuf: 'com.google.protobuf:protobuf-java:3.0.0-pre',
24 guava: 'com.google.guava:guava:18.0',
25 jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
26 oauth_client: 'com.google.oauth-client:google-oauth-client:1.18.0-rc',
27 javaee_api: 'javax:javaee-api:7.0',
28 hpack: 'com.twitter:hpack:0.9.1',
29 protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1',
30 okhttp: 'com.squareup.okhttp:okhttp:2.2.0',
31 // used to collect benchmark results
32 hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4',
nathanmittler164b7342014-12-15 09:58:05 -080033
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080034 // TODO: Unreleased dependencies.
35 // These must already be installed in the local maven repository.
36 netty: 'io.netty:netty-codec-http2:5.0.0.Alpha2-SNAPSHOT',
nathanmittler164b7342014-12-15 09:58:05 -080037
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080038 // Test dependencies.
39 junit: 'junit:junit:4.11',
40 mockito: 'org.mockito:mockito-core:1.10.8'
41 ]
42
43 // Determine the correct version of Jetty ALPN boot to use based
44 // on the Java version.
45 def alpnboot_version = '8.1.2.v20141202'
46 if (JavaVersion.current().ordinal() < JavaVersion.VERSION_1_8.ordinal()) {
47 alpnboot_version = '7.1.2.v20141202'
48 }
49
50 alpnboot_package_name = 'org.mortbay.jetty.alpn:alpn-boot:' + alpnboot_version
51 }
nathanmittler164b7342014-12-15 09:58:05 -080052
53 dependencies {
54 testCompile libraries.junit,
55 libraries.mockito
56 }
57}