Skip to content

Commit

Permalink
Change Maven groupId to io.dropwizard.metrics.okhttp (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschi authored Dec 30, 2023
1 parent 5f6d905 commit 6048750
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion metrics-okhttp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>metrics-okhttp-parent</artifactId>
<groupId>com.raskasa.metrics</groupId>
<groupId>io.dropwizard.metrics.okhttp</groupId>
<version>0.5.0-SNAPSHOT</version>
</parent>

Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<version>7</version>
</parent>

<groupId>com.raskasa.metrics</groupId>
<groupId>io.dropwizard.metrics.okhttp</groupId>
<artifactId>metrics-okhttp-parent</artifactId>
<version>0.5.0-SNAPSHOT</version>
<packaging>pom</packaging>
Expand Down Expand Up @@ -36,15 +36,15 @@
</properties>

<scm>
<url>https://github.com/raskasa/metrics-okhttp</url>
<connection>scm:git:https://github.com/raskasa/metrics-okhttp.git</connection>
<developerConnection>scm:git:[email protected]:raskasa/metrics-okhttp.git</developerConnection>
<url>https://github.com/dropwizard/metrics-okhttp</url>
<connection>scm:git:https://github.com/dropwizard/metrics-okhttp.git</connection>
<developerConnection>scm:git:[email protected]:dropwizard/metrics-okhttp.git</developerConnection>
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/raskasa/metrics-okhttp/issues</url>
<url>https://github.com/dropwizard/metrics-okhttp/issues</url>
</issueManagement>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<parent>
<artifactId>metrics-okhttp-parent</artifactId>
<groupId>com.raskasa.metrics</groupId>
<groupId>io.dropwizard.metrics.okhttp</groupId>
<version>0.5.0-SNAPSHOT</version>
</parent>

Expand Down
12 changes: 7 additions & 5 deletions sample/src/main/java/com/raskasa/metrics/okhttp/sample/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public static void main(String[] args) throws Exception {
MetricRegistry metrics = new MetricRegistry();

try (ConsoleReporter reporter =
ConsoleReporter.forRegistry(metrics)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build()) {
ConsoleReporter.forRegistry(metrics)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build()) {
reporter.start(15, TimeUnit.SECONDS);

OkHttpClient client = InstrumentedOkHttpClients.create(metrics);
Expand All @@ -26,7 +26,9 @@ public static void main(String[] args) throws Exception {
for (; ; ) {

Request request =
new Request.Builder().url("https://api.github.com/repos/raskasa/metrics-okhttp").build();
new Request.Builder()
.url("https://api.github.com/repos/raskasa/metrics-okhttp")
.build();

try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
Expand Down

0 comments on commit 6048750

Please sign in to comment.