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 | |
| 6 | group = "com.google.net.stubby" |
| 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 { |
| 18 | options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" |
| 19 | } |
| 20 | |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 21 | // External dependency management |
| 22 | ext.libraries = [ |
| 23 | protobuf: 'com.google.protobuf:protobuf-java:2.6.1', |
| 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 | okio: 'com.squareup.okio:okio:1.0.1', |
| 29 | hpack: 'com.twitter:hpack:0.9.1', |
| 30 | protobuf_plugin: 'ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1', |
| 31 | |
| 32 | // TODO: Unreleased dependencies. |
| 33 | // These must already be installed in the local maven repository. |
| 34 | netty: 'io.netty:netty-codec-http2:5.0.0.Alpha2-SNAPSHOT', |
Manik Surtani | 0ca6584 | 2015-01-16 15:13:58 -0800 | [diff] [blame^] | 35 | okhttp: 'com.squareup.okhttp:okhttp:2.2.0', |
nathanmittler | 164b734 | 2014-12-15 09:58:05 -0800 | [diff] [blame] | 36 | |
| 37 | // Test dependencies. |
| 38 | junit: 'junit:junit:4.11', |
| 39 | mockito: 'org.mockito:mockito-core:1.10.8' |
| 40 | ] |
| 41 | |
| 42 | dependencies { |
| 43 | testCompile libraries.junit, |
| 44 | libraries.mockito |
| 45 | } |
| 46 | } |