<commit_before># How to Release to Maven Central

All scripts can be found in the `.kokoro` directory.


## Snapshots

A commit to the `master` branch will automatically trigger the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/continuous` job that will publish snapshots to Sonatype Snapshots repository.
The snapshot repository cannot be browsed, but you can go to the version directly to check publish timestamps, for example http://oss.sonatype.org/content/repositories/snapshots/com/google/cloud/cloud-spanner-r2dbc/0.1.0-SNAPSHOT/.


## Releases

. Run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/stage` Kokoro job.

. In the build logs, find the ID of the staging repository. You should see a log line that looks something like this:
```
[INFO]  * Created staging repository with ID "comgooglecloud-1416".
```
The ID in this case is `comgooglecloud-1416`.

. Verify staged artifacts at http://oss.sonatype.org.
(If you don't have access to `com.google.cloud`, please make a request similar to https://issues.sonatype.org/browse/OSSRH-52371[this one] and ask for support from someone who already has access to this group ID.)

. If you want to drop the staged artifacts, run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/drop` Kokoro job, while providing the staging repository ID as an environment variable like `STAGING_REPOSITORY_ID=comgooglecloud-1416`.

. If you want to release the staged artifacts, run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/promote` Kokoro job, while providing the staging repository ID as an environment variable like `STAGING_REPOSITORY_ID=comgooglecloud-1416`.

. Verify that the new version has been published to Maven Central by checking https://repo.maven.apache.org/maven2/com/google/cloud/cloud-spanner-r2dbc/[here]. This might take a while.

. https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/releases[Create] a new release on GitHub.
<commit_msg>Update RELEASING.adoc (#233)<commit_after># How to Release to Maven Central

All scripts can be found in the `.kokoro` directory.


## Snapshots

A commit to the `master` branch will automatically trigger the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/continuous` job that will publish snapshots to https://oss.sonatype.org/content/repositories/snapshots/com/google/cloud/cloud-spanner-r2dbc/)[Sonatype Snapshots repository].

## Releases

. Run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/stage` Kokoro job.

. In the build logs, find the ID of the staging repository. You should see a log line that looks something like this:
```
[INFO]  * Created staging repository with ID "comgooglecloud-1416".
```
The `{STAGING_ID}` in this case is `comgooglecloud-1416`.

. Verify staged artifacts by going to `https://oss.sonatype.org/content/repositories/{STAGING_ID}/com/google/cloud/`
+
NOTE: You can also view all staged artifacts at http://oss.sonatype.org. To get access to `com.google.cloud` group ID, please make a request similar to https://issues.sonatype.org/browse/OSSRH-52371[this one] and ask someone who already has access to this group ID to vouch for you in the issue comments.)

. If you want to drop the staged artifacts, run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/drop` Kokoro job, while providing the staging repository ID as an environment variable like `STAGING_REPOSITORY_ID=comgooglecloud-1416`.

. If you want to release the staged artifacts, run the `prod:cloud-java-frameworks/cloud-spanner-r2dbc/promote` Kokoro job, while providing the staging repository ID as an environment variable like `STAGING_REPOSITORY_ID=comgooglecloud-1416`.

. Verify that the new version has been published to Maven Central by checking https://repo.maven.apache.org/maven2/com/google/cloud/cloud-spanner-r2dbc/[here]. This might take a while.

. https://github.com/GoogleCloudPlatform/cloud-spanner-r2dbc/releases[Create] a new release on GitHub.

{'fraction_non_alphanumeric': 0.09233136701718389, 'fraction_numerical': 0.016414465247499357, 'mean_word_length': 4.735294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4174882', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1142, 'n_words': 417}