Skip to content

Commit d18e13f

Browse files
authored
Maven GAE plugin config updates (GoogleCloudPlatform#2442)
* Maven config updates * lint * lint * lint
1 parent c4c2add commit d18e13f

File tree

19 files changed

+133
-144
lines changed

19 files changed

+133
-144
lines changed

cloud-sql/mysql/servlet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ environment variables into the runtime.
6262

6363
Next, the following command will deploy the application to your Google Cloud project:
6464
```bash
65-
mvn appengine:deploy
65+
mvn clean package appengine:deploy
6666
```
6767

6868
### Deploy to Cloud Run

cloud-sql/mysql/servlet/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<parent>
2828
<groupId>com.google.cloud.samples</groupId>
2929
<artifactId>shared-configuration</artifactId>
30-
<version>1.0.11</version>
30+
<version>1.0.12</version>
3131
</parent>
3232

3333
<properties>

cloud-sql/postgres/servlet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ environment variables into the runtime.
6262

6363
Next, the following command will deploy the application to your Google Cloud project:
6464
```bash
65-
mvn appengine:deploy
65+
mvn clean package appengine:deploy
6666
```

cloud-sql/postgres/servlet/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<parent>
2828
<groupId>com.google.cloud.samples</groupId>
2929
<artifactId>shared-configuration</artifactId>
30-
<version>1.0.11</version>
30+
<version>1.0.12</version>
3131
</parent>
3232

3333
<properties>

memorystore/redis/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<parent>
2828
<groupId>com.google.cloud.samples</groupId>
2929
<artifactId>shared-configuration</artifactId>
30-
<version>1.0.11</version>
30+
<version>1.0.12</version>
3131
</parent>
3232

3333
<properties>

storage/cloud-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<groupId>com.google.cloud.samples</groupId>
2828
<artifactId>shared-configuration</artifactId>
29-
<version>1.0.11</version>
29+
<version>1.0.12</version>
3030
</parent>
3131

3232
<properties>

storage/json-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<groupId>com.google.cloud.samples</groupId>
2828
<artifactId>shared-configuration</artifactId>
29-
<version>1.0.11</version>
29+
<version>1.0.12</version>
3030
</parent>
3131

3232
<properties>

storage/s3-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<groupId>com.google.cloud.samples</groupId>
2828
<artifactId>shared-configuration</artifactId>
29-
<version>1.0.11</version>
29+
<version>1.0.12</version>
3030
</parent>
3131

3232
<properties>

storage/s3-sdk/src/main/java/ListGcsBuckets.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,23 @@
2121
import com.amazonaws.services.s3.AmazonS3;
2222
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
2323
import com.amazonaws.services.s3.model.Bucket;
24-
2524
import java.util.List;
2625

2726
public class ListGcsBuckets {
28-
public static void listGcsBuckets(String googleAccessKeyId,
29-
String googleAccessKeySecret) {
27+
public static void listGcsBuckets(String googleAccessKeyId, String googleAccessKeySecret) {
3028

3129
// String googleAccessKeyId = "your-google-access-key-id";
3230
// String googleAccessKeySecret = "your-google-access-key-secret";
3331

3432
// Create a BasicAWSCredentials using Cloud Storage HMAC credentials.
35-
BasicAWSCredentials googleCreds = new BasicAWSCredentials(googleAccessKeyId,
36-
googleAccessKeySecret);
33+
BasicAWSCredentials googleCreds =
34+
new BasicAWSCredentials(googleAccessKeyId, googleAccessKeySecret);
3735

3836
// Create a new client and do the following:
3937
// 1. Change the endpoint URL to use the Google Cloud Storage XML API endpoint.
4038
// 2. Use Cloud Storage HMAC Credentials.
41-
AmazonS3 interopClient = AmazonS3ClientBuilder.standard()
39+
AmazonS3 interopClient =
40+
AmazonS3ClientBuilder.standard()
4241
.withEndpointConfiguration(
4342
new AwsClientBuilder.EndpointConfiguration(
4443
"https://storage.googleapis.com", "auto"))
@@ -59,4 +58,3 @@ public static void listGcsBuckets(String googleAccessKeyId,
5958
}
6059
// [END storage_s3_sdk_list_buckets]
6160
}
62-

storage/s3-sdk/src/main/java/ListGcsObjects.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,32 @@
1414
* limitations under the License.
1515
*/
1616

17-
1817
// [START storage_s3_sdk_list_objects]
1918
import com.amazonaws.auth.AWSStaticCredentialsProvider;
2019
import com.amazonaws.auth.BasicAWSCredentials;
2120
import com.amazonaws.client.builder.AwsClientBuilder;
22-
2321
import com.amazonaws.services.s3.AmazonS3;
2422
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
2523
import com.amazonaws.services.s3.model.ObjectListing;
2624
import com.amazonaws.services.s3.model.S3ObjectSummary;
2725

28-
import java.util.List;
29-
3026
public class ListGcsObjects {
31-
public static void listGcsObjects(String googleAccessKeyId,
32-
String googleAccessKeySecret, String bucketName) {
27+
public static void listGcsObjects(
28+
String googleAccessKeyId, String googleAccessKeySecret, String bucketName) {
3329

3430
// String googleAccessKeyId = "your-google-access-key-id";
3531
// String googleAccessKeySecret = "your-google-access-key-secret";
3632
// String bucketName = "bucket-name";
3733

3834
// Create a BasicAWSCredentials using Cloud Storage HMAC credentials.
39-
BasicAWSCredentials googleCreds = new BasicAWSCredentials(googleAccessKeyId,
40-
googleAccessKeySecret);
35+
BasicAWSCredentials googleCreds =
36+
new BasicAWSCredentials(googleAccessKeyId, googleAccessKeySecret);
4137

4238
// Create a new client and do the following:
4339
// 1. Change the endpoint URL to use the Google Cloud Storage XML API endpoint.
4440
// 2. Use Cloud Storage HMAC Credentials.
45-
AmazonS3 interopClient = AmazonS3ClientBuilder.standard()
41+
AmazonS3 interopClient =
42+
AmazonS3ClientBuilder.standard()
4643
.withEndpointConfiguration(
4744
new AwsClientBuilder.EndpointConfiguration(
4845
"https://storage.googleapis.com", "auto"))

0 commit comments

Comments
 (0)