Skip to content

Commit 222bc55

Browse files
authored
Merge pull request #8 from jianglai/readme
Add instructions on how to depend on the library
2 parents e6fd4e9 + ae9a236 commit 222bc55

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ backend-agnostic approach to Java metrics instrumentation.
3838
Metrics are modeled after [Stackdriver
3939
Metrics](https://cloud.google.com/monitoring/api/v3/metrics).
4040

41+
## Importing the library
42+
43+
The most recent release is [v1.0.3](https://github.com/google/monitoring-client/releases/tag/v1.0.3).
44+
45+
The Maven group ID is `com.google.monitoring-client`. The artifact ID is
46+
`metrics` for the main library, and `stackdriver` for the stackdriver backend
47+
writer. We also provide a `contrib` library that is useful if you want to make test
48+
assertions on certain metric types with Google's [truth](https://github.com/google/truth)
49+
library.
50+
51+
To add a dependency on the metrics library using Maven:
52+
53+
```xml
54+
<dependency>
55+
<groupId>com.google.monitoring-client</groupId>
56+
<artifactId>metrics</artifactId>
57+
<version>1.0.3</version>
58+
</dependency>
59+
```
60+
4161
## Using the library
4262

4363
* Registering Metrics

third_party/junit/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818
<description>
1919
Convenient functions backported from JUnit 4.13.
2020
</description>
21+
22+
<properties>
23+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
24+
</properties>
25+
2126
</project>

0 commit comments

Comments
 (0)