Skip to content

Commit e7de359

Browse files
dependabot[bot]vanroguclaude
authored
Bump io.javalin:javalin from 6.7.0 to 7.0.0 (#44)
* Bump io.javalin:javalin from 6.7.0 to 7.0.0 Bumps [io.javalin:javalin](https://github.com/javalin/javalin) from 6.7.0 to 7.0.0. - [Release notes](https://github.com/javalin/javalin/releases) - [Commits](javalin/javalin@javalin-parent-6.7.0...javalin-parent-7.0.0) --- updated-dependencies: - dependency-name: io.javalin:javalin dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix compile errors for Javalin 7.0.0 upgrade Adapt BenchmarkApplication to Javalin 7 breaking API changes: - Move useVirtualThreads to config.concurrency.useVirtualThreads - Move route registration from javalin.get() to config.routes.get() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Günther Van Roey <gunther.vanroey@xt-i.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 574fea8 commit e7de359

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

sliceworkz-eventmodeling-benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<packaging>jar</packaging>
3535

3636
<properties>
37-
<javalin.version>6.7.0</javalin.version>
37+
<javalin.version>7.0.0</javalin.version>
3838
<logback.version>1.5.32</logback.version>
3939
<loki-logback.version>2.0.3</loki-logback.version>
4040
</properties>

sliceworkz-eventmodeling-benchmark/src/main/java/org/sliceworkz/eventmodeling/benchmark/BenchmarkApplication.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,15 @@ public static void main ( String[] args ) throws InterruptedException {
8383

8484
// Javalin framework for REST
8585
var javalin = Javalin.create(config -> {
86-
config.useVirtualThreads = true; // Enables virtual threads for all request handling
86+
config.concurrency.useVirtualThreads = true; // Enables virtual threads for all request handling
87+
if ( prometheusMeterRegistry != null ) {
88+
// Expose metrics endpoint for Prometheus to scrape
89+
config.routes.get("/metrics", ctx -> {
90+
ctx.contentType("text/plain; version=0.0.4")
91+
.result(prometheusMeterRegistry.scrape());
92+
});
93+
}
8794
});
88-
89-
if ( prometheusMeterRegistry != null ) {
90-
// Expose metrics endpoint for Prometheus to scrape
91-
javalin.get("/metrics", ctx -> {
92-
ctx.contentType("text/plain; version=0.0.4")
93-
.result(prometheusMeterRegistry.scrape());
94-
});
95-
96-
}
9795
javalin.start(7072);
9896

9997
LOGGER.info("starting ...");

0 commit comments

Comments
 (0)