Skip to content

Commit

Permalink
chore: migrate samples to java-docs-samples (#1031)
Browse files Browse the repository at this point in the history
* chore: remove samples files due migration

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
minherz and gcf-owl-bot[bot] authored Nov 10, 2022
1 parent a255261 commit ceef828
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 493 deletions.
30 changes: 0 additions & 30 deletions java-errorreporting/.github/workflows/samples.yaml

This file was deleted.

60 changes: 1 addition & 59 deletions java-errorreporting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,49 +21,8 @@ The Maven artifact coordinates (`com.google.cloud:google-cloud-errorreporting`)

## Quickstart

If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:

```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-errorreporting</artifactId>
</dependency>
<!-- START_EXCLUDE -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<!-- END_EXCLUDE -->
</dependencies>

```

If you are using Maven without BOM, add this to your dependencies:
If you are using Maven, add this to your pom.xml file:


```xml
Expand All @@ -72,16 +31,8 @@ If you are using Maven without BOM, add this to your dependencies:
<artifactId>google-cloud-errorreporting</artifactId>
<version>0.126.0-beta</version>
</dependency>

```

If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.4')
implementation 'com.google.cloud:google-cloud-errorreporting'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
Expand Down Expand Up @@ -129,15 +80,6 @@ use this Error Reporting Client Library.



## Samples

Samples are in the [`samples/`](https://github.com/googleapis/java-errorreporting/tree/main/samples) directory.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Quick Start | [source code](https://github.com/googleapis/java-errorreporting/blob/main/samples/snippets/src/main/java/com/example/errorreporting/QuickStart.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-errorreporting&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/errorreporting/QuickStart.java) |



## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion java-errorreporting/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates(excludes=['.github/auto-label.yaml'])
java.common_templates(excludes=['.github/auto-label.yaml', '.github/workflows/samples.yaml', 'samples/**'])

# --------------------------------------------------------------------------
# Modify test configs
Expand Down
89 changes: 0 additions & 89 deletions java-errorreporting/samples/install-without-bom/pom.xml

This file was deleted.

56 changes: 0 additions & 56 deletions java-errorreporting/samples/pom.xml

This file was deleted.

88 changes: 0 additions & 88 deletions java-errorreporting/samples/snapshot/pom.xml

This file was deleted.

Loading

0 comments on commit ceef828

Please sign in to comment.