Skip to content

Commit 8bf47af

Browse files
committed
chore: post migration updates - groupId, artifact url, repo references
1 parent 4869569 commit 8bf47af

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

retail/interactive-tutorials/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can find the information about the Retail services in the [documentation](ht
3939
If you would like to have a closer look at the Retail API features and try them yourself,
4040
the best option is to use the [Interactive Tutorials](https://cloud.google.com/retail/docs/overview). In the documentation chapters find the "Guide me" button, the tutorials will be launched in the CloudShell environment, and you will be able to request the Retail services and check the response with minimum time and effort.
4141

42-
The code samples in the directory **java-retail/samples/interactive-tutorials** are explicitly created for use with the Retail Interactive Tutorials.
42+
The code samples in the directory **java-docs-samples/retail/interactive-tutorials** are explicitly created for use with the Retail Interactive Tutorials.
4343

4444
If, for some reason, you have decided to proceed with these code samples without the tutorial, please go through the following steps and set up the required preconditions.
4545

@@ -52,10 +52,10 @@ To prepare the work environment you should perform the following steps:
5252

5353
### There are two ways to set up your work environment:
5454

55-
- If you want to **speed up the process** of setting up the working environment, run the script java-retail/samples/interactive-tutorials/samples/interactive-tutorials/src/main/java/user_environment_setup.sh and skip the next **set up the work environment step-by-step** tutorial step:
55+
- If you want to **speed up the process** of setting up the working environment, run the script java-docs-samples/retail/interactive-tutorials/src/main/java/user_environment_setup.sh and skip the next **set up the work environment step-by-step** tutorial step:
5656

5757
```bash
58-
bash java-retail/samples/interactive-tutorials/user_environment_setup.sh
58+
bash java-docs-samples/retail/interactive-tutorials/user_environment_setup.sh
5959
```
6060

6161
- If you want to perform the environment set up step by step along with getting the explanation you should proceed with the next tutorial step.
@@ -120,22 +120,22 @@ Learn more about the [Java Google Cloud Retail library](https://googleapis.dev/j
120120
Go to the code samples directory, your starting point to run more commands.
121121

122122
```bash
123-
cd java-retail/samples/interactive-tutorials/
123+
cd java-docs-samples/retail/interactive-tutorials/
124124
```
125125

126126
## Import catalog data
127127

128128
<i>This step is required if this is the first Retail API tutorial that you run.
129129
Otherwise, you can skip it.</i>
130130

131-
There is a java-retail/samples/interactive-tutorials/src/main/resources/products.json file with valid products prepared in the `resources` directory.
131+
There is a java-docs-samples/retail/interactive-tutorials/src/main/resources/products.json file with valid products prepared in the `resources` directory.
132132

133-
The other file, java-retail/samples/interactive-tutorials/src/main/resources/products_some_invalid.json, contains both valid and invalid products. You will use it to check the error handling.
133+
The other file, java-docs-samples/retail/interactive-tutorials/src/main/resources/products_some_invalid.json, contains both valid and invalid products. You will use it to check the error handling.
134134

135135
- If you want to **speed up the process**, run the following script in the Terminal directory to import all products to catalog and skip the next **Prepare the catalog data step-by-step** tutorial step:
136136

137137
```bash
138-
bash java-retail/samples/interactive-tutorials/user_import_data_to_catalog.sh
138+
bash java-docs-samples/retail/interactive-tutorials/user_import_data_to_catalog.sh
139139
```
140140

141141
- If you want to upload products to the catalog step by step along with getting the explanation, you should proceed with the next tutorial step.
@@ -152,10 +152,10 @@ The bucket name must be unique. For convenience, you can name it `<YOUR_PROJECT_
152152
Go to the code samples directory, your starting point to run more commands.
153153

154154
```bash
155-
cd java-retail/samples/interactive-tutorials
155+
cd java-docs-samples/retail/interactive-tutorials
156156
```
157157

158-
1. To create the bucket and upload the JSON file, open java-retail/samples/interactive-tutorials/src/main/java/product/setup/ProductsCreateGcsBucket.java file
158+
1. To create the bucket and upload the JSON file, open java-docs-samples/retail/interactive-tutorials/src/main/java/product/setup/ProductsCreateGcsBucket.java file
159159

160160
1. Go to the **product** directory and run the following command in the Terminal:
161161

@@ -180,7 +180,7 @@ The bucket name must be unique. For convenience, you can name it `<YOUR_PROJECT_
180180

181181
### Import products to the Retail Catalog
182182

183-
To import the prepared products to a catalog, open java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java file and run the following command in the Terminal:
183+
To import the prepared products to a catalog, open java-docs-samples/retail/interactive-tutorials/src/main/java/product/ImportProductsGcs.java file and run the following command in the Terminal:
184184

185185
```bash
186186
mvn compile exec:java -Dexec.mainClass=product.ImportProductsGcs

retail/interactive-tutorials/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>com.google.cloud</groupId>
6+
<groupId>com.example.retail</groupId>
77
<artifactId>retail-interactive-tutorials</artifactId>
88
<packaging>jar</packaging>
99
<name>Google Cloud Retail Interactive Tutorials</name>
10-
<url>https://github.com/googleapis/java-retail</url>
10+
<url>https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/retail</url>
1111

1212
<!--
1313
The parent pom defines common style checks and testing strategies for our samples.

retail/interactive-tutorials/user_environment_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ gcloud auth activate-service-account --key-file ~/key.json
8585

8686

8787
# install needed Google client libraries
88-
cd ~/cloudshell_open/java-retail/samples/interactive-tutorials || exit
88+
cd ~/cloudshell_open/java-docs-samples/retail/interactive-tutorials || exit
8989
mvn clean install -DskipTests
9090

9191

retail/interactive-tutorials/user_import_data_to_catalog.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
export GOOGLE_APPLICATION_CREDENTIALS=~/key.json
2020

2121
# Change the working directory
22-
cd ~/cloudshell_open/java-retail/samples/interactive-tutorials/ || exit
22+
cd ~/cloudshell_open/java-docs-samples/retail/interactive-tutorials/ || exit
2323

2424
# Run the sample for creating the GCS bucket and extract the output of that execution
2525
output=$(mvn compile exec:java -Dexec.mainClass="product.setup.ProductsCreateGcsBucket")

0 commit comments

Comments
 (0)