blob: 74c39df35befdcdd7cc44defc03985450cff71b3 [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 = [
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080023 guava: 'com.google.guava:guava:18.0',
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080024 // used to collect benchmark results
25 hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4',
nmittlerb897a892015-02-23 12:03:59 -080026 hpack: 'com.twitter:hpack:0.9.1',
27 javaee_api: 'javax:javaee-api:7.0',
28 jsonp: 'org.glassfish:javax.json:1.0.4',
29 jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
30 oauth_client: 'com.google.oauth-client:google-oauth-client:1.18.0-rc',
31 okhttp: 'com.squareup.okhttp:okhttp:2.2.0',
32 protobuf: 'com.google.protobuf:protobuf-java:3.0.0-pre',
33 protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1',
nathanmittler164b7342014-12-15 09:58:05 -080034
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080035 // TODO: Unreleased dependencies.
36 // These must already be installed in the local maven repository.
37 netty: 'io.netty:netty-codec-http2:5.0.0.Alpha2-SNAPSHOT',
nathanmittler164b7342014-12-15 09:58:05 -080038
Jakob Buchgraber7ddcdfd2015-02-13 16:21:53 -080039 // Test dependencies.
40 junit: 'junit:junit:4.11',
41 mockito: 'org.mockito:mockito-core:1.10.8'
42 ]
43
44 // Determine the correct version of Jetty ALPN boot to use based
45 // on the Java version.
46 def alpnboot_version = '8.1.2.v20141202'
47 if (JavaVersion.current().ordinal() < JavaVersion.VERSION_1_8.ordinal()) {
48 alpnboot_version = '7.1.2.v20141202'
49 }
50
51 alpnboot_package_name = 'org.mortbay.jetty.alpn:alpn-boot:' + alpnboot_version
52 }
nathanmittler164b7342014-12-15 09:58:05 -080053
54 dependencies {
55 testCompile libraries.junit,
56 libraries.mockito
57 }
58}