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" |
nmittler | 02c953e | 2015-01-26 14:03:11 -0800 | [diff] [blame] | 19 | } |
| 20 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 21 | ext { |
| 22 | libraries = [ |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 23 | guava: 'com.google.guava:guava:18.0', |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 24 | // used to collect benchmark results |
| 25 | hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4', |
nmittler | b897a89 | 2015-02-23 12:03:59 -0800 | [diff] [blame^] | 26 | 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', |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 34 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 35 | // 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', |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 38 | |
Jakob Buchgraber | 7ddcdfd | 2015-02-13 16:21:53 -0800 | [diff] [blame] | 39 | // 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 | } |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 53 | |
| 54 | dependencies { |
| 55 | testCompile libraries.junit, |
| 56 | libraries.mockito |
| 57 | } |
| 58 | } |