Skip to content

Commit

Permalink
chore: add release please config and set pom files to auto-update ver…
Browse files Browse the repository at this point in the history
…sions (#274)
  • Loading branch information
shubha-rajan authored Sep 15, 2020
1 parent 3f28698 commit aa6d0a8
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 17 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: release-please
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: java-yoshi
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ are unsure, it is recommended to use the latest version of `mysql-connector-java

##### Maven
Include the following in the project's `pom.xml`:
[//]: # ({x-version-update-start:cloud-sql-java-connector:released})
```maven-pom
<dependency>
    <groupId>com.google.cloud.sql</groupId>
Expand Down Expand Up @@ -73,7 +74,7 @@ Include the following the project's `gradle.build`
```gradle
compile 'com.google.cloud.sql:postgres-socket-factory:1.0.16'
```

[//]: # ({x-version-update-end})

#### Creating the JDBC URL

Expand Down
4 changes: 2 additions & 2 deletions connector-j-5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>mysql-socket-factory</artifactId>
<packaging>jar</packaging>
Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions connector-j-6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>mysql-socket-factory-connector-j-6</artifactId>
<packaging>jar</packaging>
Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions connector-j-8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>mysql-socket-factory-connector-j-8</artifactId>
<packaging>jar</packaging>
Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>jdbc-socket-factory-core</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<packaging>pom</packaging>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->


<name>Cloud SQL JDBC Socket Factory</name>
Expand Down
4 changes: 2 additions & 2 deletions postgres/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>postgres-socket-factory</artifactId>
<packaging>jar</packaging>
Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions r2dbc-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>r2cbc-connection-factory-core</artifactId>
<packaging>jar</packaging>
Expand All @@ -32,7 +32,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions r2dbc-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>cloud-sql-connector-r2dbc-mysql</artifactId>
<packaging>jar</packaging>
Expand All @@ -33,7 +33,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>r2cbc-connection-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 2 additions & 2 deletions r2dbc-postgres/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.google.cloud.sql</groupId>
<artifactId>jdbc-socket-factory-parent</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</parent>
<artifactId>cloud-sql-connector-r2dbc-postgres</artifactId>
<packaging>jar</packaging>
Expand All @@ -33,7 +33,7 @@
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>r2cbc-connection-factory-core</artifactId>
<version>1.0.17-SNAPSHOT</version>
<version>1.0.17-SNAPSHOT</version> <!-- {x-version-update:cloud-sql-java-connector:current} -->
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 4 additions & 0 deletions versions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Format:
# module:released-version:current-version

cloud-sql-java-connector:1.0.16:1.0.17-SNAPSHOT

0 comments on commit aa6d0a8

Please sign in to comment.