Commit cbcaa2f 1 parent dd16115 commit cbcaa2f Copy full SHA for cbcaa2f
File tree 5 files changed +69
-2
lines changed
spring-cloud-gcp-trace-sample/src/main/java/com/example
spring-cloud-gcp-vision-api-sample/src/main/java/com/example
5 files changed +69
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ build_file: " spring-cloud-gcp/.kokoro/publish_javadoc.sh"
4
+
5
+ before_action {
6
+ fetch_keystore {
7
+ keystore_resource {
8
+ keystore_config_id: 73713
9
+ keyname: " docuploader_service_account"
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eo pipefail
3
+
4
+ if [[ -z " ${CREDENTIALS} " ]]; then
5
+ CREDENTIALS=${KOKORO_KEYSTORE_DIR} /73713_docuploader_service_account
6
+ fi
7
+
8
+ # Set the version of python to 3.6
9
+ pyenv global 3.6.1
10
+
11
+ # Get into the spring-cloud-gcp repo directory
12
+ dir=$( dirname " $0 " )
13
+ pushd $dir /../
14
+
15
+ # Compute the project version.
16
+ PROJECT_VERSION=$( ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
17
+
18
+ # Install docuploader package
19
+ python3 -m pip install --user gcp-docuploader
20
+
21
+ # Build the javadocs
22
+ ./mvnw clean javadoc:aggregate
23
+
24
+ # Move into generated docs directory
25
+ pushd target/site/apidocs/
26
+
27
+ python3 -m docuploader create-metadata \
28
+ --name spring-cloud-gcp \
29
+ --version ${PROJECT_VERSION} \
30
+ --language java
31
+
32
+ python3 -m docuploader upload . \
33
+ --credentials ${CREDENTIALS} \
34
+ --staging-bucket docs-staging
35
+
36
+ popd
37
+ popd
Original file line number Diff line number Diff line change 216
216
<artifactId >appengine-maven-plugin</artifactId >
217
217
<version >${app-engine-maven-plugin.version} </version >
218
218
</plugin >
219
+ <plugin >
220
+ <groupId >org.apache.maven.plugins</groupId >
221
+ <artifactId >maven-javadoc-plugin</artifactId >
222
+ <configuration >
223
+ <excludePackageNames >
224
+ com.example,
225
+ com.example.*,
226
+ <!-- Exclude samples and classes in the Firestore Google Client library packages -->
227
+ com.google.cloud.firestore
228
+ </excludePackageNames >
229
+ <links >
230
+ <link >https://googleapis.dev/java/google-cloud-vision/latest/</link >
231
+ <link >https://googleapis.dev/java/google-cloud-spanner/latest/</link >
232
+ <link >https://googleapis.dev/java/google-cloud-clients/latest/</link >
233
+ </links >
234
+ </configuration >
235
+ </plugin >
219
236
</plugins >
220
237
</build >
221
238
Original file line number Diff line number Diff line change 25
25
import org .springframework .web .bind .annotation .RestController ;
26
26
27
27
/**
28
- * Sample REST Controller to demonstrate Spring Cloud Sleuth & Stackdriver Trace.
28
+ * Sample REST Controller to demonstrate Spring Cloud Sleuth and Stackdriver Trace.
29
29
*
30
30
* @author Ray Tsang
31
31
* @author Mike Eltsufin
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ public class VisionController {
56
56
* @param imageUrl the URL of the image
57
57
* @param map the model map to use
58
58
* @return a string with the list of labels and percentage of certainty
59
- * @throws CloudVisionTemplate if the Vision API call produces an error
59
+ * @throws org.springframework.cloud.gcp.vision.CloudVisionException if the Vision API call
60
+ * produces an error
60
61
*/
61
62
@ GetMapping ("/extractLabels" )
62
63
public ModelAndView extractLabels (String imageUrl , ModelMap map ) {
You can’t perform that action at this time.
0 commit comments