|
| 1 | +<!-- |
| 2 | + Copyright 2018, Google LLC |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +--> |
| 16 | +<project> |
| 17 | + <modelVersion>4.0.0</modelVersion> |
| 18 | + <groupId>com.example.speech</groupId> |
| 19 | + <artifactId>speech-google-cloud-samples</artifactId> |
| 20 | + <packaging>jar</packaging> |
| 21 | + |
| 22 | + <!-- |
| 23 | + The parent pom defines common style checks and testing strategies for our samples. |
| 24 | + Removing or replacing it should not affect the execution of the samples in anyway. |
| 25 | + --> |
| 26 | + <parent> |
| 27 | + <groupId>com.google.cloud.samples</groupId> |
| 28 | + <artifactId>shared-configuration</artifactId> |
| 29 | + <version>1.0.10</version> |
| 30 | + </parent> |
| 31 | + |
| 32 | + <properties> |
| 33 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 34 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 35 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 36 | + </properties> |
| 37 | + |
| 38 | + <dependencies> |
| 39 | + <!-- [START speech_quickstart_dependencies] --> |
| 40 | + <dependency> |
| 41 | + <groupId>com.google.cloud</groupId> |
| 42 | + <artifactId>google-cloud-speech</artifactId> |
| 43 | + <version>0.56.0-beta</version> |
| 44 | + </dependency> |
| 45 | + <!-- [END speech_quickstart_dependencies] --> |
| 46 | + |
| 47 | + <!-- Test dependencies --> |
| 48 | + <dependency> |
| 49 | + <groupId>junit</groupId> |
| 50 | + <artifactId>junit</artifactId> |
| 51 | + <version>4.12</version> |
| 52 | + <scope>test</scope> |
| 53 | + </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>com.google.truth</groupId> |
| 56 | + <artifactId>truth</artifactId> |
| 57 | + <version>0.42</version> |
| 58 | + <scope>test</scope> |
| 59 | + </dependency> |
| 60 | + </dependencies> |
| 61 | + |
| 62 | + <build> |
| 63 | + <plugins> |
| 64 | + <plugin> |
| 65 | + <artifactId>maven-assembly-plugin</artifactId> |
| 66 | + <configuration> |
| 67 | + <archive> |
| 68 | + <manifest> |
| 69 | + <mainClass>com.example.language.QuickstartSample</mainClass> |
| 70 | + </manifest> |
| 71 | + </archive> |
| 72 | + <descriptorRefs> |
| 73 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 74 | + </descriptorRefs> |
| 75 | + </configuration> |
| 76 | + </plugin> |
| 77 | + </plugins> |
| 78 | + </build> |
| 79 | + |
| 80 | + <profiles> |
| 81 | + <profile> |
| 82 | + <id>Quickstart</id> |
| 83 | + <activation> |
| 84 | + <property> |
| 85 | + <name>Quickstart</name> |
| 86 | + </property> |
| 87 | + </activation> |
| 88 | + <build> |
| 89 | + <plugins> |
| 90 | + <plugin> |
| 91 | + <groupId>org.codehaus.mojo</groupId> |
| 92 | + <artifactId>exec-maven-plugin</artifactId> |
| 93 | + <version>1.6.0</version> |
| 94 | + <executions> |
| 95 | + <execution> |
| 96 | + <goals> |
| 97 | + <goal>java</goal> |
| 98 | + </goals> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + <configuration> |
| 102 | + <mainClass>com.example.speech.QuickstartSample</mainClass> |
| 103 | + <cleanupDaemonThreads>false</cleanupDaemonThreads> |
| 104 | + </configuration> |
| 105 | + </plugin> |
| 106 | + </plugins> |
| 107 | + </build> |
| 108 | + </profile> |
| 109 | + |
| 110 | + <profile> |
| 111 | + <id>Recognize</id> |
| 112 | + <activation> |
| 113 | + <property> |
| 114 | + <name>Recognize</name> |
| 115 | + </property> |
| 116 | + </activation> |
| 117 | + <build> |
| 118 | + <plugins> |
| 119 | + <plugin> |
| 120 | + <groupId>org.codehaus.mojo</groupId> |
| 121 | + <artifactId>exec-maven-plugin</artifactId> |
| 122 | + <version>1.6.0</version> |
| 123 | + <executions> |
| 124 | + <execution> |
| 125 | + <goals> |
| 126 | + <goal>java</goal> |
| 127 | + </goals> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + <configuration> |
| 131 | + <mainClass>com.example.speech.Recognize</mainClass> |
| 132 | + <cleanupDaemonThreads>false</cleanupDaemonThreads> |
| 133 | + </configuration> |
| 134 | + </plugin> |
| 135 | + </plugins> |
| 136 | + </build> |
| 137 | + </profile> |
| 138 | + </profiles> |
| 139 | +</project> |
0 commit comments