Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
chore: fix samples (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Apr 20, 2020
1 parent dfd6e89 commit 3f3320e
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 228 deletions.
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -29,7 +29,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-monitoring</artifactId>
</dependency>
</dependencies>

```

Expand All @@ -39,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-monitoring</artifactId>
<version>1.100.1</version>
<version>1.100.2-SNAPSHOT</version>
</dependency>

```
Expand Down Expand Up @@ -94,8 +93,7 @@ has instructions for running the samples.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Quickstart Sample | [source code](https://github.com/googleapis/java-monitoring/blob/master/samples/install-with-bom/src/main/java/com/example/monitoring/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-monitoring&page=editor&open_in_editor=samples/install-with-bom/src/main/java/com/example/monitoring/QuickstartSample.java) |
| Quickstart Sample | [source code](https://github.com/googleapis/java-monitoring/blob/master/samples/install-without-bom/src/main/java/com/example/monitoring/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-monitoring&page=editor&open_in_editor=samples/install-without-bom/src/main/java/com/example/monitoring/QuickstartSample.java) |
| Quickstart Sample | [source code](https://github.com/googleapis/java-monitoring/blob/master/samples/snippets/src/main/java/com/example/monitoring/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-monitoring&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/monitoring/QuickstartSample.java) |



Expand All @@ -113,8 +111,8 @@ Java 7 or above is required for using this client.

## Versioning

This library follows [Semantic Versioning](http://semver.org/).

This library follows [Semantic Versioning](http://semver.org/).


## Contributing
Expand Down
46 changes: 0 additions & 46 deletions samples/install-with-bom/pom.xml

This file was deleted.

34 changes: 34 additions & 0 deletions samples/install-without-bom/pom.xml
Expand Up @@ -35,4 +35,38 @@
</dependencies>
<!-- {x-version-update-end} -->

<!-- compile and run all snippet tests -->
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>add-snippets-source</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>../snippets/src/main/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-snippets-tests</id>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>../snippets/src/test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion samples/pom.xml
Expand Up @@ -28,8 +28,9 @@
</properties>

<modules>
<module>install-with-bom</module>
<module>install-without-bom</module>
<module>snapshot</module>
<module>snippets</module>
</modules>

<build>
Expand Down
2 changes: 1 addition & 1 deletion synth.metadata
Expand Up @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "52638600f387deb98efb5f9c85fec39e82aa9052"
"sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d"
}
}
],
Expand Down

0 comments on commit 3f3320e

Please sign in to comment.