From 451e3aca65e9811fa182e9741ff65180f04fb427 Mon Sep 17 00:00:00 2001 From: Joao Pedro Tavares Date: Fri, 17 Apr 2026 14:06:31 -0300 Subject: [PATCH] chore(release): 1.2.0 - Bump all module versions from 1.1.0 to 1.2.0 - Update README install snippets to 1.2.0 - Document context-path changes (PRs #2 and #3) in CHANGELOG Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 16 ++++++++++++++++ README.md | 14 +++++++------- j-obs-benchmarks/pom.xml | 2 +- j-obs-bom/pom.xml | 4 ++-- j-obs-core/pom.xml | 2 +- j-obs-sample/pom.xml | 2 +- j-obs-spring-boot-starter/pom.xml | 2 +- j-obs-starter-logging/pom.xml | 2 +- j-obs-starter-metrics/pom.xml | 2 +- j-obs-starter-profiling/pom.xml | 2 +- j-obs-starter-tracing/pom.xml | 2 +- pom.xml | 2 +- samples/j-obs-alerts/pom.xml | 2 +- samples/j-obs-database/pom.xml | 2 +- samples/j-obs-microservices/api-gateway/pom.xml | 2 +- .../inventory-service/pom.xml | 2 +- .../j-obs-microservices/order-service/pom.xml | 2 +- samples/j-obs-microservices/pom.xml | 2 +- samples/j-obs-minimal/pom.xml | 2 +- samples/j-obs-security/pom.xml | 2 +- samples/j-obs-slo/pom.xml | 2 +- samples/j-obs-webflux/pom.xml | 2 +- samples/pom.xml | 2 +- 23 files changed, 45 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4beee15..e461adb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.0] - 2026-04-17 + +### Added +- **Context path awareness** — J-Obs UI now respects `server.servlet.context-path` and `spring.webflux.base-path`, so all dashboard links and asset URLs work correctly when the application is deployed under a non-root context (e.g. `/my-app/j-obs`). Previously all links hardcoded `/j-obs` and returned 404. +- **`TemplateService.fullPath()` / `getContextPath()`** — single source of truth for path resolution across controllers, including a new `{{CONTEXT_PATH}}` placeholder used by the API Docs page for Swagger UI and OpenAPI spec links. +- **WebFlux fallback** — when `server.servlet.context-path` is absent, `TemplateService` falls back to `spring.webflux.base-path`. +- **`TemplateServiceTest`** — 8 JUnit tests covering servlet context-path, WebFlux base-path, trailing-slash normalization, and empty context-path scenarios. + +### Changed +- `TemplateService` now precomputes `fullPath` at construction time (path resolution is immutable post-boot). +- `AlertController` and `SqlAnalyzerController` aligned with the class-level `@RequestMapping` convention used by the other UI controllers. +- The `templateService` bean definition moved from `JObsToolsAutoConfiguration` into the core `JObsAutoConfiguration` / `JObsWebFluxAutoConfiguration` so all controllers can depend on it. + +### Fixed +- `JObsLogAutoConfigurationTest` now loads `JObsAutoConfiguration` in addition to `JObsLogAutoConfiguration`, since `LogController` depends on `TemplateService`. + ## [1.0.25] - 2026-03-22 ### Added diff --git a/README.md b/README.md index 6a35298..6f137a2 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ sequenceDiagram io.github.johnpitter j-obs-spring-boot-starter - 1.1.0 + 1.2.0 ``` @@ -166,28 +166,28 @@ J-Obs offers **modular starters** so you can include only the features you need, io.github.johnpitter j-obs-starter-tracing - 1.1.0 + 1.2.0 io.github.johnpitter j-obs-starter-metrics - 1.1.0 + 1.2.0 io.github.johnpitter j-obs-starter-logging - 1.1.0 + 1.2.0 io.github.johnpitter j-obs-starter-profiling - 1.1.0 + 1.2.0 ``` @@ -198,12 +198,12 @@ You can combine multiple starters: io.github.johnpitter j-obs-starter-tracing - 1.1.0 + 1.2.0 io.github.johnpitter j-obs-starter-metrics - 1.1.0 + 1.2.0 ``` diff --git a/j-obs-benchmarks/pom.xml b/j-obs-benchmarks/pom.xml index 4e31d98..d2106a7 100644 --- a/j-obs-benchmarks/pom.xml +++ b/j-obs-benchmarks/pom.xml @@ -7,7 +7,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-benchmarks diff --git a/j-obs-bom/pom.xml b/j-obs-bom/pom.xml index d03badb..8f7ee31 100644 --- a/j-obs-bom/pom.xml +++ b/j-obs-bom/pom.xml @@ -7,7 +7,7 @@ io.github.johnpitter j-obs-bom - 1.1.0 + 1.2.0 pom J-Obs BOM @@ -43,7 +43,7 @@ - 1.1.0 + 1.2.0 diff --git a/j-obs-core/pom.xml b/j-obs-core/pom.xml index 806d30e..a6dfe1c 100644 --- a/j-obs-core/pom.xml +++ b/j-obs-core/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-core diff --git a/j-obs-sample/pom.xml b/j-obs-sample/pom.xml index b8e3147..b7f9be7 100644 --- a/j-obs-sample/pom.xml +++ b/j-obs-sample/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 ../pom.xml diff --git a/j-obs-spring-boot-starter/pom.xml b/j-obs-spring-boot-starter/pom.xml index 95bd3ff..572124f 100644 --- a/j-obs-spring-boot-starter/pom.xml +++ b/j-obs-spring-boot-starter/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-spring-boot-starter diff --git a/j-obs-starter-logging/pom.xml b/j-obs-starter-logging/pom.xml index 3bcf0ee..5fc89a2 100644 --- a/j-obs-starter-logging/pom.xml +++ b/j-obs-starter-logging/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-starter-logging diff --git a/j-obs-starter-metrics/pom.xml b/j-obs-starter-metrics/pom.xml index 8c270d7..2eff826 100644 --- a/j-obs-starter-metrics/pom.xml +++ b/j-obs-starter-metrics/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-starter-metrics diff --git a/j-obs-starter-profiling/pom.xml b/j-obs-starter-profiling/pom.xml index c9f896f..6df0a97 100644 --- a/j-obs-starter-profiling/pom.xml +++ b/j-obs-starter-profiling/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-starter-profiling diff --git a/j-obs-starter-tracing/pom.xml b/j-obs-starter-tracing/pom.xml index 4ea6f71..8a23457 100644 --- a/j-obs-starter-tracing/pom.xml +++ b/j-obs-starter-tracing/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 j-obs-starter-tracing diff --git a/pom.xml b/pom.xml index 3105d28..e8365a1 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 pom J-Obs Parent diff --git a/samples/j-obs-alerts/pom.xml b/samples/j-obs-alerts/pom.xml index 3a1dd0a..4b81f1e 100644 --- a/samples/j-obs-alerts/pom.xml +++ b/samples/j-obs-alerts/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-database/pom.xml b/samples/j-obs-database/pom.xml index e077072..3f59d0e 100644 --- a/samples/j-obs-database/pom.xml +++ b/samples/j-obs-database/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-microservices/api-gateway/pom.xml b/samples/j-obs-microservices/api-gateway/pom.xml index a3b4862..26d18f9 100644 --- a/samples/j-obs-microservices/api-gateway/pom.xml +++ b/samples/j-obs-microservices/api-gateway/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-microservices - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-microservices/inventory-service/pom.xml b/samples/j-obs-microservices/inventory-service/pom.xml index f579bad..4b789bf 100644 --- a/samples/j-obs-microservices/inventory-service/pom.xml +++ b/samples/j-obs-microservices/inventory-service/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-microservices - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-microservices/order-service/pom.xml b/samples/j-obs-microservices/order-service/pom.xml index 3922675..00f00df 100644 --- a/samples/j-obs-microservices/order-service/pom.xml +++ b/samples/j-obs-microservices/order-service/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-microservices - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-microservices/pom.xml b/samples/j-obs-microservices/pom.xml index ccb9c7a..a83f518 100644 --- a/samples/j-obs-microservices/pom.xml +++ b/samples/j-obs-microservices/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-minimal/pom.xml b/samples/j-obs-minimal/pom.xml index 2ffe18d..640752c 100644 --- a/samples/j-obs-minimal/pom.xml +++ b/samples/j-obs-minimal/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-security/pom.xml b/samples/j-obs-security/pom.xml index 751395d..17e072e 100644 --- a/samples/j-obs-security/pom.xml +++ b/samples/j-obs-security/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-slo/pom.xml b/samples/j-obs-slo/pom.xml index 15024ab..b053c56 100644 --- a/samples/j-obs-slo/pom.xml +++ b/samples/j-obs-slo/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/j-obs-webflux/pom.xml b/samples/j-obs-webflux/pom.xml index d298a1e..672b2b4 100644 --- a/samples/j-obs-webflux/pom.xml +++ b/samples/j-obs-webflux/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-samples - 1.1.0 + 1.2.0 ../pom.xml diff --git a/samples/pom.xml b/samples/pom.xml index 841a926..0875f4c 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -8,7 +8,7 @@ io.github.johnpitter j-obs-parent - 1.1.0 + 1.2.0 ../pom.xml