Skip to content

Commit 76e528f

Browse files
jkebingerclaude
andauthored
Fix Central Repository validation issues and update documentation (#11)
* Add missing project descriptions for Central Repository - Add description to sdk-parent POM - Add description to sdk-micronaut-extension POM Fixes Central Repository validation errors: "Project description is missing" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Update documentation with correct Maven coordinates and class names - Fix Maven coordinates: cloud.prefab → com.reforge - Update artifact names to match current POM structure - Fix version references: TODO → 0.3.26 - Correct main class: PrefabCloudClient → Sdk - Remove non-existent methods (setReforgeEnvs) - Update URLs: prefab.cloud → reforge.com - Fix JavaDoc badge URLs for new coordinates Ensures all documentation matches the actual published artifacts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e15cca1 commit 76e528f

File tree

5 files changed

+33
-38
lines changed

5 files changed

+33
-38
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Reforge Java Sdk
1+
# Reforge Java SDK
22

3-
[![javadoc](https://javadoc.io/badge2/cloud.prefab/client/javadoc.svg)](https://javadoc.io/doc/cloud.prefab/client) FIXME
3+
[![javadoc](https://javadoc.io/badge2/com.reforge/sdk/javadoc.svg)](https://javadoc.io/doc/com.reforge/sdk)
44
[![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/pdi9.svg)](https://betteruptime.com/?utm_source=status_badge)
55

6-
Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://launch.reforge.com
6+
Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://reforge.com
77

8-
See full documentation [https://docs.prefab.cloud/docs/java-sdk/java](https://docs.prefab.cloud/docs/sdks/java)
8+
See full documentation [https://docs.reforge.com/docs/java-sdk/java](https://docs.reforge.com/docs/sdks/java)
99

1010
Maven
1111
```xml
1212
<dependency>
1313
<groupId>com.reforge</groupId>
1414
<artifactId>sdk</artifactId>
15-
<version>TODO</version>
15+
<version>0.3.26</version>
1616
</dependency>
1717
```
1818

1919

20-
## Contributing to prefab-cloud-java
20+
## Contributing to reforge-sdk-java
2121

2222
* Check out the latest `main` to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
2323
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.

micronaut/README.md

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,53 @@
1-
# prefab-cloud-java
2-
Java Client for Prefab LogLevels, FeatureFlags, Config as a Service: https://www.prefab.cloud
1+
# reforge-sdk-java
2+
Java Client for Reforge LogLevels, FeatureFlags, Config as a Service: https://reforge.com
33

4-
See full documentation https://docs.prefab.cloud/docs/java-sdk/java
4+
See full documentation https://docs.reforge.com/docs/java-sdk/java
55

66
# Micronaut Support
77

88
## Context Storage
99

10-
Out of the box, the Prefab client includes the ThreadLocalContextStore which relies on the same Thread handling a HTTP Request.
10+
Out of the box, the Reforge client includes the ThreadLocalContextStore which relies on the same Thread handling a HTTP Request.
1111

12-
Micronaut has an event based model, so state must be managed without ThreadLocals - to that end we provide the `ServerRequestContextStore` that uses the ServerRequestContext.
12+
Micronaut has an event based model, so state must be managed without ThreadLocals - to that end we provide the `ServerRequestContextStore` that uses the ServerRequestContext.
1313
_Note: Behind the scenes ServerRequestContext is based on a threadlocal, but micronaut's instrumentation code knows to copy this threadlocal between threads as the request moves through processing._
1414

1515
### Usage
1616

1717
Maven
1818

19-
Maven
2019
```xml
2120
<dependency>
22-
<groupId>cloud.prefab</groupId>
23-
<artifactId>micronaut</artifactId>
24-
<version>0.3.25</version>
21+
<groupId>com.reforge</groupId>
22+
<artifactId>sdk-micronaut-extension</artifactId>
23+
<version>0.3.26</version>
2524
</dependency>
2625
```
2726

28-
The context store implementation is added to the Prefab `Options` class.
27+
The context store implementation is added to the Reforge `Options` class.
2928

30-
You'll likely have a factory class like this one - see the `options.setContextStore(new PrefabMicronautStateStore());` in the sdk method
29+
You'll likely have a factory class like this one - see the `options.setContextStore(new ServerRequestContextStore());` in the sdk method
3130

3231
```java
3332
@Factory
34-
public class PrefabFactory {
35-
private static final Logger LOG = LoggerFactory.getLogger(PrefabFactory.class);
33+
public class ReforgeFactory {
34+
private static final Logger LOG = LoggerFactory.getLogger(ReforgeFactory.class);
3635

3736
@Singleton
38-
public PrefabCloudClient sdk(Environment environment) {
37+
public Sdk sdk(Environment environment) {
3938
final Options options = new Options();
40-
options.setPrefabEnvs(environment.getActiveNames().stream().toList());
41-
options.setContextStore(new PrefabMicronautStateStore());
42-
return new PrefabCloudClient(options);
39+
options.setContextStore(new ServerRequestContextStore());
40+
return new Sdk(options);
4341
}
4442

4543
@Singleton
46-
public FeatureFlagClient featureFlagClient(PrefabCloudClient sdk) {
44+
public FeatureFlagClient featureFlagClient(Sdk sdk) {
4745
return sdk.featureFlagClient();
4846
}
4947

50-
@Context
51-
public ConfigClient configClient(
52-
PrefabCloudClient sdk
53-
) {
54-
ConfigClient configClient = sdk.configClient();
55-
// install the logging filter at the same time
56-
PrefabMDCTurboFilter.install(configClient);
57-
return configClient;
48+
@Singleton
49+
public ConfigClient configClient(Sdk sdk) {
50+
return sdk.configClient();
5851
}
5952
}
6053
```

micronaut/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<artifactId>sdk-micronaut-extension</artifactId>
1111
<name>Reforge SDK Extension for Micronaut</name>
12+
<description>Micronaut integration for Reforge SDK to enable storage of Context in the Server Request Context</description>
1213

1314
<properties>
1415
<maven.compiler.source>11</maven.compiler.source>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<version>0.3.26</version>
1515
<packaging>pom</packaging>
1616
<name>Reforge SDK Parent POM</name>
17+
<description>Parent POM for Reforge SDK modules providing feature flags, configuration management, and A/B testing capabilities</description>
1718

1819
<modules>
1920
<module>micronaut</module>

sdk/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Reforge Java Sdk
1+
# Reforge Java SDK
22

3-
[![javadoc](https://javadoc.io/badge2/cloud.prefab/client/javadoc.svg)](https://javadoc.io/doc/cloud.prefab/client) FIXME
3+
[![javadoc](https://javadoc.io/badge2/com.reforge/sdk/javadoc.svg)](https://javadoc.io/doc/com.reforge/sdk)
44
[![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/pdi9.svg)](https://betteruptime.com/?utm_source=status_badge)
55

6-
Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://launch.reforge.com
6+
Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://reforge.com
77

8-
See full documentation https://docs.prefab.cloud/docs/java-sdk/java
8+
See full documentation https://docs.reforge.com/docs/java-sdk/java
99

1010

1111
### Maven
1212
```xml
1313
<dependency>
1414
<groupId>com.reforge</groupId>
1515
<artifactId>sdk</artifactId>
16-
<version>TODO</version>
16+
<version>0.3.26</version>
1717
</dependency>
1818
```
1919

@@ -25,7 +25,7 @@ For an uber-jar including relocated guava and failsafe dependencies add the "ube
2525
<dependency>
2626
<groupId>com.reforge</groupId>
2727
<artifactId>sdk</artifactId>
28-
<version>TODO</version>
28+
<version>0.3.26</version>
2929
<classifier>uberjar</classifier>
3030
</dependency>
3131
```

0 commit comments

Comments
 (0)