Skip to content

Commit ceef828

Browse files
chore: migrate samples to java-docs-samples (#1031)
* 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>
1 parent a255261 commit ceef828

File tree

9 files changed

+2
-493
lines changed

9 files changed

+2
-493
lines changed

java-errorreporting/.github/workflows/samples.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

java-errorreporting/README.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -21,49 +21,8 @@ The Maven artifact coordinates (`com.google.cloud:google-cloud-errorreporting`)
2121

2222
## Quickstart
2323

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

26-
```xml
27-
<dependencyManagement>
28-
<dependencies>
29-
<dependency>
30-
<groupId>com.google.cloud</groupId>
31-
<artifactId>libraries-bom</artifactId>
32-
<version>26.1.4</version>
33-
<type>pom</type>
34-
<scope>import</scope>
35-
</dependency>
36-
</dependencies>
37-
</dependencyManagement>
38-
39-
<dependencies>
40-
<dependency>
41-
<groupId>com.google.cloud</groupId>
42-
<artifactId>google-cloud-errorreporting</artifactId>
43-
</dependency>
44-
<!-- START_EXCLUDE -->
45-
<dependency>
46-
<groupId>com.google.cloud</groupId>
47-
<artifactId>google-cloud-core</artifactId>
48-
</dependency>
49-
<dependency>
50-
<groupId>junit</groupId>
51-
<artifactId>junit</artifactId>
52-
<version>4.13.2</version>
53-
<scope>test</scope>
54-
</dependency>
55-
<dependency>
56-
<groupId>com.google.truth</groupId>
57-
<artifactId>truth</artifactId>
58-
<version>1.1.3</version>
59-
<scope>test</scope>
60-
</dependency>
61-
<!-- END_EXCLUDE -->
62-
</dependencies>
63-
64-
```
65-
66-
If you are using Maven without BOM, add this to your dependencies:
25+
If you are using Maven, add this to your pom.xml file:
6726

6827

6928
```xml
@@ -72,16 +31,8 @@ If you are using Maven without BOM, add this to your dependencies:
7231
<artifactId>google-cloud-errorreporting</artifactId>
7332
<version>0.126.0-beta</version>
7433
</dependency>
75-
7634
```
7735

78-
If you are using Gradle 5.x or later, add this to your dependencies:
79-
80-
```Groovy
81-
implementation platform('com.google.cloud:libraries-bom:26.1.4')
82-
83-
implementation 'com.google.cloud:google-cloud-errorreporting'
84-
```
8536
If you are using Gradle without BOM, add this to your dependencies:
8637

8738
```Groovy
@@ -129,15 +80,6 @@ use this Error Reporting Client Library.
12980

13081

13182

132-
## Samples
133-
134-
Samples are in the [`samples/`](https://github.com/googleapis/java-errorreporting/tree/main/samples) directory.
135-
136-
| Sample | Source Code | Try it |
137-
| --------------------------- | --------------------------------- | ------ |
138-
| 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) |
139-
140-
14183

14284
## Troubleshooting
14385

java-errorreporting/owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
s.move(library)
7676

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

8080
# --------------------------------------------------------------------------
8181
# Modify test configs

java-errorreporting/samples/install-without-bom/pom.xml

Lines changed: 0 additions & 89 deletions
This file was deleted.

java-errorreporting/samples/pom.xml

Lines changed: 0 additions & 56 deletions
This file was deleted.

java-errorreporting/samples/snapshot/pom.xml

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)