nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 1 | subprojects { |
| 2 | apply plugin: "java" |
| 3 | apply plugin: "maven" |
nmittler | 52f4220 | 2015-01-21 14:30:14 -0800 | [diff] [blame] | 4 | apply plugin: "idea" |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 5 | |
nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 6 | group = "io.grpc" |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 7 | version = "0.1.0-SNAPSHOT" |
| 8 | |
| 9 | sourceCompatibility = 1.6 |
| 10 | targetCompatibility = 1.6 |
| 11 | |
| 12 | repositories { |
| 13 | mavenCentral() |
| 14 | mavenLocal() |
| 15 | } |
| 16 | |
nmittler | 02c953e | 2015-01-26 14:03:11 -0800 | [diff] [blame] | 17 | compileJava { |
Eric Anderson | e26608f | 2015-02-13 16:39:54 -0800 | [diff] [blame] | 18 | options.compilerArgs << "-Xlint:unchecked" |
Eric Anderson | 61179ab | 2015-02-24 22:59:32 +0000 | [diff] [blame] | 19 | options.encoding = "UTF-8" |
nmittler | 02c953e | 2015-01-26 14:03:11 -0800 | [diff] [blame] | 20 | } |
| 21 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 22 | ext { |
| 23 | libraries = [ |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 24 | guava: 'com.google.guava:guava:18.0', |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 25 | // used to collect benchmark results |
| 26 | hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4', |
Jeff Pinner | b1cc7cc | 2015-02-25 10:17:23 -0800 | [diff] [blame] | 27 | hpack: 'com.twitter:hpack:0.10.1', |
nmittler | b897a89 | 2015-02-23 12:03:59 -0800 | [diff] [blame] | 28 | javaee_api: 'javax:javaee-api:7.0', |
| 29 | jsonp: 'org.glassfish:javax.json:1.0.4', |
| 30 | jsr305: 'com.google.code.findbugs:jsr305:3.0.0', |
| 31 | oauth_client: 'com.google.oauth-client:google-oauth-client:1.18.0-rc', |
| 32 | okhttp: 'com.squareup.okhttp:okhttp:2.2.0', |
Eric Anderson | a6f5fff | 2015-02-26 07:53:17 -0800 | [diff] [blame] | 33 | protobuf: 'com.google.protobuf:protobuf-java:3.0.0-alpha-2', |
| 34 | protobuf_nano: 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2', |
nmittler | b897a89 | 2015-02-23 12:03:59 -0800 | [diff] [blame] | 35 | protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1', |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 36 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 37 | // TODO: Unreleased dependencies. |
| 38 | // These must already be installed in the local maven repository. |
| 39 | netty: 'io.netty:netty-codec-http2:5.0.0.Alpha2-SNAPSHOT', |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 40 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 41 | // Test dependencies. |
| 42 | junit: 'junit:junit:4.11', |
| 43 | mockito: 'org.mockito:mockito-core:1.10.8' |
| 44 | ] |
| 45 | |
| 46 | // Determine the correct version of Jetty ALPN boot to use based |
| 47 | // on the Java version. |
| 48 | def alpnboot_version = '8.1.2.v20141202' |
| 49 | if (JavaVersion.current().ordinal() < JavaVersion.VERSION_1_8.ordinal()) { |
| 50 | alpnboot_version = '7.1.2.v20141202' |
| 51 | } |
| 52 | |
| 53 | alpnboot_package_name = 'org.mortbay.jetty.alpn:alpn-boot:' + alpnboot_version |
| 54 | } |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 55 | |
| 56 | dependencies { |
| 57 | testCompile libraries.junit, |
| 58 | libraries.mockito |
| 59 | } |
| 60 | } |