From 4a8ce7c9bcb995e8b10c1f515b584c0fe460b144 Mon Sep 17 00:00:00 2001 From: James Kebinger Date: Mon, 22 Sep 2025 17:27:39 -0500 Subject: [PATCH 1/2] Add missing project descriptions for Central Repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- micronaut/pom.xml | 1 + pom.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/micronaut/pom.xml b/micronaut/pom.xml index e5a4022..38ab3ae 100644 --- a/micronaut/pom.xml +++ b/micronaut/pom.xml @@ -9,6 +9,7 @@ sdk-micronaut-extension Reforge SDK Extension for Micronaut + Micronaut integration for Reforge SDK to enable storage of Context in the Server Request Context 11 diff --git a/pom.xml b/pom.xml index 8dd45f9..7a5d08f 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,7 @@ 0.3.26 pom Reforge SDK Parent POM + Parent POM for Reforge SDK modules providing feature flags, configuration management, and A/B testing capabilities micronaut From 17136ae2a1d58f64a1a5ec722719b1cd2b4bd0f1 Mon Sep 17 00:00:00 2001 From: James Kebinger Date: Mon, 22 Sep 2025 17:32:07 -0500 Subject: [PATCH 2/2] Update documentation with correct Maven coordinates and class names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- README.md | 12 ++++++------ micronaut/README.md | 45 +++++++++++++++++++-------------------------- sdk/README.md | 12 ++++++------ 3 files changed, 31 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 3944866..5ba8692 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -# Reforge Java Sdk +# Reforge Java SDK -[![javadoc](https://javadoc.io/badge2/cloud.prefab/client/javadoc.svg)](https://javadoc.io/doc/cloud.prefab/client) FIXME +[![javadoc](https://javadoc.io/badge2/com.reforge/sdk/javadoc.svg)](https://javadoc.io/doc/com.reforge/sdk) [![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/pdi9.svg)](https://betteruptime.com/?utm_source=status_badge) -Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://launch.reforge.com +Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://reforge.com -See full documentation [https://docs.prefab.cloud/docs/java-sdk/java](https://docs.prefab.cloud/docs/sdks/java) +See full documentation [https://docs.reforge.com/docs/java-sdk/java](https://docs.reforge.com/docs/sdks/java) Maven ```xml com.reforge sdk - TODO + 0.3.26 ``` -## Contributing to prefab-cloud-java +## Contributing to reforge-sdk-java * Check out the latest `main` to make sure the feature hasn't been implemented or the bug hasn't been fixed yet. * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it. diff --git a/micronaut/README.md b/micronaut/README.md index 66dae4b..559405d 100644 --- a/micronaut/README.md +++ b/micronaut/README.md @@ -1,60 +1,53 @@ -# prefab-cloud-java -Java Client for Prefab LogLevels, FeatureFlags, Config as a Service: https://www.prefab.cloud +# reforge-sdk-java +Java Client for Reforge LogLevels, FeatureFlags, Config as a Service: https://reforge.com -See full documentation https://docs.prefab.cloud/docs/java-sdk/java +See full documentation https://docs.reforge.com/docs/java-sdk/java # Micronaut Support ## Context Storage -Out of the box, the Prefab client includes the ThreadLocalContextStore which relies on the same Thread handling a HTTP Request. +Out of the box, the Reforge client includes the ThreadLocalContextStore which relies on the same Thread handling a HTTP Request. -Micronaut has an event based model, so state must be managed without ThreadLocals - to that end we provide the `ServerRequestContextStore` that uses the ServerRequestContext. +Micronaut has an event based model, so state must be managed without ThreadLocals - to that end we provide the `ServerRequestContextStore` that uses the ServerRequestContext. _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._ ### Usage Maven -Maven ```xml - cloud.prefab - micronaut - 0.3.25 + com.reforge + sdk-micronaut-extension + 0.3.26 ``` -The context store implementation is added to the Prefab `Options` class. +The context store implementation is added to the Reforge `Options` class. -You'll likely have a factory class like this one - see the `options.setContextStore(new PrefabMicronautStateStore());` in the sdk method +You'll likely have a factory class like this one - see the `options.setContextStore(new ServerRequestContextStore());` in the sdk method ```java @Factory -public class PrefabFactory { - private static final Logger LOG = LoggerFactory.getLogger(PrefabFactory.class); +public class ReforgeFactory { + private static final Logger LOG = LoggerFactory.getLogger(ReforgeFactory.class); @Singleton - public PrefabCloudClient sdk(Environment environment) { + public Sdk sdk(Environment environment) { final Options options = new Options(); - options.setPrefabEnvs(environment.getActiveNames().stream().toList()); - options.setContextStore(new PrefabMicronautStateStore()); - return new PrefabCloudClient(options); + options.setContextStore(new ServerRequestContextStore()); + return new Sdk(options); } @Singleton - public FeatureFlagClient featureFlagClient(PrefabCloudClient sdk) { + public FeatureFlagClient featureFlagClient(Sdk sdk) { return sdk.featureFlagClient(); } - @Context - public ConfigClient configClient( - PrefabCloudClient sdk - ) { - ConfigClient configClient = sdk.configClient(); - // install the logging filter at the same time - PrefabMDCTurboFilter.install(configClient); - return configClient; + @Singleton + public ConfigClient configClient(Sdk sdk) { + return sdk.configClient(); } } ``` diff --git a/sdk/README.md b/sdk/README.md index edae631..e434536 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -1,11 +1,11 @@ -# Reforge Java Sdk +# Reforge Java SDK -[![javadoc](https://javadoc.io/badge2/cloud.prefab/client/javadoc.svg)](https://javadoc.io/doc/cloud.prefab/client) FIXME +[![javadoc](https://javadoc.io/badge2/com.reforge/sdk/javadoc.svg)](https://javadoc.io/doc/com.reforge/sdk) [![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/pdi9.svg)](https://betteruptime.com/?utm_source=status_badge) -Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://launch.reforge.com +Java (11+) Reforge SDK for FeatureFlags, Config as a Service: https://reforge.com -See full documentation https://docs.prefab.cloud/docs/java-sdk/java +See full documentation https://docs.reforge.com/docs/java-sdk/java ### Maven @@ -13,7 +13,7 @@ See full documentation https://docs.prefab.cloud/docs/java-sdk/java com.reforge sdk - TODO + 0.3.26 ``` @@ -25,7 +25,7 @@ For an uber-jar including relocated guava and failsafe dependencies add the "ube com.reforge sdk - TODO + 0.3.26 uberjar ```