1+ <!--
2+ Copyright 2018, Google Inc.
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+ http://www.apache.org/licenses/LICENSE-2.0
7+ Unless required by applicable law or agreed to in writing, software
8+ distributed under the License is distributed on an "AS IS" BASIS,
9+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+ See the License for the specific language governing permissions and
11+ limitations under the License.
12+ -->
13+ <project >
14+ <modelVersion >4.0.0</modelVersion >
15+ <groupId >com.example.texttospeech</groupId >
16+ <artifactId >tts-samples</artifactId >
17+ <packaging >jar</packaging >
18+
19+ <!-- Parent defines config for testing & linting. -->
20+ <parent >
21+ <artifactId >doc-samples</artifactId >
22+ <groupId >com.google.cloud</groupId >
23+ <version >1.0.0</version >
24+ <relativePath >../..</relativePath >
25+ </parent >
26+
27+ <properties >
28+ <maven .compiler.target>1.8</maven .compiler.target>
29+ <maven .compiler.source>1.8</maven .compiler.source>
30+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
31+ </properties >
32+
33+ <dependencies >
34+ <!-- [START dependencies] -->
35+ <dependency >
36+ <groupId >com.google.cloud</groupId >
37+ <artifactId >google-cloud-texttospeech</artifactId >
38+ <version >0.41.0-beta</version >
39+ </dependency >
40+ <dependency >
41+ <groupId >net.sourceforge.argparse4j</groupId >
42+ <artifactId >argparse4j</artifactId >
43+ <version >0.8.1</version >
44+ </dependency >
45+ <!-- [END 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.35</version >
58+ <scope >test</scope >
59+ </dependency >
60+ </dependencies >
61+
62+
63+ <profiles >
64+ <!--Quickstart-->
65+ <profile >
66+ <id >Quickstart</id >
67+ <activation >
68+ <property >
69+ <name >Quickstart</name >
70+ </property >
71+ </activation >
72+ <build >
73+ <plugins >
74+ <plugin >
75+ <groupId >org.codehaus.mojo</groupId >
76+ <artifactId >exec-maven-plugin</artifactId >
77+ <version >1.6.0</version >
78+ <executions >
79+ <execution >
80+ <goals >
81+ <goal >java</goal >
82+ </goals >
83+ </execution >
84+ </executions >
85+ <configuration >
86+ <mainClass >com.example.texttospeech.QuickstartSample</mainClass >
87+ <cleanupDaemonThreads >false</cleanupDaemonThreads >
88+ </configuration >
89+ </plugin >
90+ </plugins >
91+ </build >
92+ </profile >
93+
94+ <!--ListVoices-->
95+ <profile >
96+ <id >ListVoices</id >
97+ <activation >
98+ <property >
99+ <name >ListVoices</name >
100+ </property >
101+ </activation >
102+ <build >
103+ <plugins >
104+ <plugin >
105+ <groupId >org.codehaus.mojo</groupId >
106+ <artifactId >exec-maven-plugin</artifactId >
107+ <version >1.6.0</version >
108+ <executions >
109+ <execution >
110+ <goals >
111+ <goal >java</goal >
112+ </goals >
113+ </execution >
114+ </executions >
115+ <configuration >
116+ <mainClass >com.example.texttospeech.ListAllSupportedVoices</mainClass >
117+ <cleanupDaemonThreads >false</cleanupDaemonThreads >
118+ </configuration >
119+ </plugin >
120+ </plugins >
121+ </build >
122+ </profile >
123+
124+ <!--SynthesizeFile-->
125+ <profile >
126+ <id >SynthesizeFile</id >
127+ <activation >
128+ <property >
129+ <name >SynthesizeFile</name >
130+ </property >
131+ </activation >
132+ <build >
133+ <plugins >
134+ <plugin >
135+ <groupId >org.codehaus.mojo</groupId >
136+ <artifactId >exec-maven-plugin</artifactId >
137+ <version >1.6.0</version >
138+ <executions >
139+ <execution >
140+ <goals >
141+ <goal >java</goal >
142+ </goals >
143+ </execution >
144+ </executions >
145+ <configuration >
146+ <mainClass >com.example.texttospeech.SynthesizeFile</mainClass >
147+ <cleanupDaemonThreads >false</cleanupDaemonThreads >
148+ </configuration >
149+ </plugin >
150+ </plugins >
151+ </build >
152+ </profile >
153+
154+ <!--SynthesizeText-->
155+ <profile >
156+ <id >SynthesizeText</id >
157+ <activation >
158+ <property >
159+ <name >SynthesizeText</name >
160+ </property >
161+ </activation >
162+ <build >
163+ <plugins >
164+ <plugin >
165+ <groupId >org.codehaus.mojo</groupId >
166+ <artifactId >exec-maven-plugin</artifactId >
167+ <version >1.6.0</version >
168+ <executions >
169+ <execution >
170+ <goals >
171+ <goal >java</goal >
172+ </goals >
173+ </execution >
174+ </executions >
175+ <configuration >
176+ <mainClass >com.example.texttospeech.SynthesizeText</mainClass >
177+ <cleanupDaemonThreads >false</cleanupDaemonThreads >
178+ </configuration >
179+ </plugin >
180+ </plugins >
181+ </build >
182+ </profile >
183+ </profiles >
184+ </project >
0 commit comments