Skip to content

Commit c977879

Browse files
authored
Merge pull request #97 from gaboss44/fix/common-scopes
fix: ensure consistent number formatting and update dependency scope
2 parents 672c92d + bfa1ec5 commit c977879

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

ezrtp-common/src/main/java/com/skyblockexp/ezrtp/performance/PerformanceSnapshot.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.skyblockexp.ezrtp.performance;
22

3+
import java.util.Locale;
4+
35
/** Immutable point-in-time snapshot of EzRTP performance metrics. */
46
public final class PerformanceSnapshot {
57

@@ -210,6 +212,6 @@ public String toJson() {
210212
}
211213

212214
private static String fmt(double value) {
213-
return String.format("%.2f", value);
215+
return String.format(Locale.US, "%.2f", value);
214216
}
215217
}

ezrtp-paper/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<groupId>com.skyblockexp</groupId>
3434
<artifactId>ezrtp-common</artifactId>
3535
<version>3.2.0</version>
36+
<scope>provided</scope>
3637
</dependency>
3738
<dependency>
3839
<groupId>org.junit.jupiter</groupId>

ezrtp-purpur/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<groupId>com.skyblockexp</groupId>
2525
<artifactId>ezrtp-common</artifactId>
2626
<version>3.2.0</version>
27+
<scope>provided</scope>
2728
</dependency>
2829
<dependency>
2930
<groupId>io.papermc.paper</groupId>
@@ -77,7 +78,6 @@
7778
<artifactSet>
7879
<includes>
7980
<include>com.skyblockexp:ezrtp-paper</include>
80-
<include>com.skyblockexp:ezrtp-common</include>
8181
</includes>
8282
</artifactSet>
8383
<createDependencyReducedPom>false</createDependencyReducedPom>

0 commit comments

Comments
 (0)