|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>com.google.cloud.speech</groupId> |
| 7 | + <artifactId>grpc-sample</artifactId> |
| 8 | + <version>1.0</version> |
| 9 | + <packaging>jar</packaging> |
| 10 | + |
| 11 | + <name>speech-grpc-sample</name> |
| 12 | + <url>https://cloud.google.com/speech/</url> |
| 13 | + <inceptionYear>2016</inceptionYear> |
| 14 | + |
| 15 | + <licenses> |
| 16 | + <license> |
| 17 | + <name>Apache 2</name> |
| 18 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 19 | + <distribution>repo</distribution> |
| 20 | + </license> |
| 21 | + </licenses> |
| 22 | + |
| 23 | + <organization> |
| 24 | + <name>Google</name> |
| 25 | + <url>http://www.google.com</url> |
| 26 | + </organization> |
| 27 | + |
| 28 | + <developers> |
| 29 | + <developer> |
| 30 | + <id>ejonte@google.com</id> |
| 31 | + <name>Erik Jonte</name> |
| 32 | + <email>ejonte@google.com</email> |
| 33 | + <url>http://www.google.com</url> |
| 34 | + <organization>Google</organization> |
| 35 | + <organizationUrl>http://www.google.com</organizationUrl> |
| 36 | + <roles> |
| 37 | + <role>developer</role> |
| 38 | + </roles> |
| 39 | + <timezone>-8</timezone> |
| 40 | + </developer> |
| 41 | + </developers> |
| 42 | + |
| 43 | + <properties> |
| 44 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | + </properties> |
| 46 | + |
| 47 | + <profiles> |
| 48 | + <profile> |
| 49 | + <id>staged</id> |
| 50 | + <repositories> |
| 51 | + <repository> |
| 52 | + <id>snapshots-repo</id> |
| 53 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 54 | + <releases> |
| 55 | + <enabled>false</enabled> |
| 56 | + </releases> |
| 57 | + <snapshots> |
| 58 | + <enabled>true</enabled> |
| 59 | + </snapshots> |
| 60 | + </repository> |
| 61 | + </repositories> |
| 62 | + </profile> |
| 63 | + <profile> |
| 64 | + <id>jdk7</id> |
| 65 | + <activation> |
| 66 | + <jdk>1.7</jdk> |
| 67 | + </activation> |
| 68 | + <properties> |
| 69 | + <jdk.version>1.7</jdk.version> |
| 70 | + </properties> |
| 71 | + </profile> |
| 72 | + <profile> |
| 73 | + <id>jdk8</id> |
| 74 | + <activation> |
| 75 | + <jdk>1.8</jdk> |
| 76 | + </activation> |
| 77 | + <properties> |
| 78 | + <jdk.version>1.8</jdk.version> |
| 79 | + </properties> |
| 80 | + </profile> |
| 81 | + <profile> |
| 82 | + <id>fedora</id> |
| 83 | + <activation> |
| 84 | + <property> |
| 85 | + <name>os.detected.classifier</name> |
| 86 | + <value>os.detected.release.fedora</value> |
| 87 | + </property> |
| 88 | + </activation> |
| 89 | + <properties> |
| 90 | + <tcnative.classifier>${os.detected.classifier}-fedora</tcnative.classifier> |
| 91 | + </properties> |
| 92 | + </profile> |
| 93 | + <profile> |
| 94 | + <id>non-fedora</id> |
| 95 | + <activation> |
| 96 | + <property> |
| 97 | + <name>os.detected.classifier</name> |
| 98 | + <value>!os.detected.release.fedora</value> |
| 99 | + </property> |
| 100 | + </activation> |
| 101 | + <properties> |
| 102 | + <tcnative.classifier>${os.detected.classifier}</tcnative.classifier> |
| 103 | + </properties> |
| 104 | + </profile> |
| 105 | + </profiles> |
| 106 | + |
| 107 | + <!-- // [START dependency] --> |
| 108 | + <dependencies> |
| 109 | + <dependency> |
| 110 | + <groupId>commons-cli</groupId> |
| 111 | + <artifactId>commons-cli</artifactId> |
| 112 | + <version>1.3.1</version> |
| 113 | + </dependency> |
| 114 | + <dependency> |
| 115 | + <groupId>com.google.guava</groupId> |
| 116 | + <artifactId>guava</artifactId> |
| 117 | + <version>19.0</version> |
| 118 | + </dependency> |
| 119 | + <dependency> |
| 120 | + <groupId>io.grpc</groupId> |
| 121 | + <artifactId>grpc-all</artifactId> |
| 122 | + <version>0.13.2</version> |
| 123 | + </dependency> |
| 124 | + <dependency> |
| 125 | + <groupId>com.google.oauth-client</groupId> |
| 126 | + <artifactId>google-oauth-client</artifactId> |
| 127 | + <version>1.21.0</version> |
| 128 | + </dependency> |
| 129 | + <dependency> |
| 130 | + <!-- |
| 131 | + It is recommended to use OpenSSL: Statically Linked Netty |
| 132 | + for transport security. These steps do not use the TLS that |
| 133 | + comes with JDK (Jetty APLN/NPN), which is not |
| 134 | + recommended. See |
| 135 | + https://github.com/grpc/grpc-java/blob/master/SECURITY.md |
| 136 | + for details. |
| 137 | + --> |
| 138 | + <groupId>io.netty</groupId> |
| 139 | + <artifactId>netty-tcnative-boringssl-static</artifactId> |
| 140 | + <version>1.1.33.Fork14</version> |
| 141 | + <classifier>${tcnative.classifier}</classifier> |
| 142 | + </dependency> |
| 143 | + </dependencies> |
| 144 | + <!-- // [END dependency] --> |
| 145 | + |
| 146 | + <pluginRepositories> |
| 147 | + <pluginRepository> |
| 148 | + <releases> |
| 149 | + <updatePolicy>never</updatePolicy> |
| 150 | + </releases> |
| 151 | + <snapshots> |
| 152 | + <enabled>false</enabled> |
| 153 | + </snapshots> |
| 154 | + <id>central</id> |
| 155 | + <name>Central Repository</name> |
| 156 | + <url>https://repo.maven.apache.org/maven2</url> |
| 157 | + </pluginRepository> |
| 158 | + <pluginRepository> |
| 159 | + <id>protoc-plugin</id> |
| 160 | + <url>https://dl.bintray.com/sergei-ivanov/maven/</url> |
| 161 | + </pluginRepository> |
| 162 | + </pluginRepositories> |
| 163 | + <!-- // [START os-maven-plugin] --> |
| 164 | + <build> |
| 165 | + <extensions> |
| 166 | + <extension> |
| 167 | + <groupId>kr.motd.maven</groupId> |
| 168 | + <artifactId>os-maven-plugin</artifactId> |
| 169 | + <version>1.4.1.Final</version> |
| 170 | + </extension> |
| 171 | + </extensions> |
| 172 | + <!-- // [END os-maven-plugin] --> |
| 173 | + <plugins> |
| 174 | + <plugin> |
| 175 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 176 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 177 | + <version>0.5.0</version> |
| 178 | + <configuration> |
| 179 | + <!-- |
| 180 | + The version of protoc must match protobuf-java. If you |
| 181 | + don't depend on protobuf-java directly, you will be |
| 182 | + transitively depending on the protobuf-java version that |
| 183 | + grpc depends on. |
| 184 | + --> |
| 185 | + <protocArtifact>com.google.protobuf:protoc:3.0.0-beta-2:exe:${os.detected.classifier}</protocArtifact> |
| 186 | + <pluginId>grpc-java</pluginId> |
| 187 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:0.13.2:exe:${os.detected.classifier}</pluginArtifact> |
| 188 | + </configuration> |
| 189 | + <executions> |
| 190 | + <execution> |
| 191 | + <goals> |
| 192 | + <goal>compile</goal> |
| 193 | + <goal>compile-custom</goal> |
| 194 | + </goals> |
| 195 | + </execution> |
| 196 | + </executions> |
| 197 | + </plugin> |
| 198 | + <plugin> |
| 199 | + <groupId>org.codehaus.mojo</groupId> |
| 200 | + <artifactId>versions-maven-plugin</artifactId> |
| 201 | + <version>2.1</version> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <phase>compile</phase> |
| 205 | + <goals> |
| 206 | + <goal>display-dependency-updates</goal> |
| 207 | + </goals> |
| 208 | + </execution> |
| 209 | + </executions> |
| 210 | + </plugin> |
| 211 | + <plugin> |
| 212 | + <artifactId>maven-compiler-plugin</artifactId> |
| 213 | + <version>3.1</version> |
| 214 | + <configuration> |
| 215 | + <source>${jdk.version}</source> |
| 216 | + <target>${jdk.version}</target> |
| 217 | + <showWarnings>true</showWarnings> |
| 218 | + <showDeprecation>false</showDeprecation> |
| 219 | + <compilerArgument>-Xlint:-options</compilerArgument> |
| 220 | + </configuration> |
| 221 | + </plugin> |
| 222 | + <plugin> |
| 223 | + <artifactId>maven-assembly-plugin</artifactId> |
| 224 | + <configuration> |
| 225 | + <descriptorRefs> |
| 226 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 227 | + </descriptorRefs> |
| 228 | + </configuration> |
| 229 | + <executions> |
| 230 | + <execution> |
| 231 | + <id>simple-command</id> |
| 232 | + <phase>package</phase> |
| 233 | + <goals> |
| 234 | + <goal>attached</goal> |
| 235 | + </goals> |
| 236 | + </execution> |
| 237 | + </executions> |
| 238 | + </plugin> |
| 239 | + </plugins> |
| 240 | + <!-- // [START footer] --> |
| 241 | + </build> |
| 242 | +</project> |
| 243 | +<!-- // [END footer] --> |
0 commit comments