r/java • • Jun 14 '26

JPMS Explained Through a C# Analogy

0 Upvotes

A lot of people, even to this day, are still confused about what exactly JPMS is, what problem it solves, and why it was necessary. I will try to explain it as simply as possible, with a similar analogy in C#, to help understand the problem — and the solution.


The problem

Let’s say you have two projects: ProjectA and ProjectB. ProjectB is a consumer of ProjectA, so the dependency chain looks like this:

ProjectB -> Depends On -> ProjectA

You can imagine the directory structure like this:

ProjectA
└── src/
    └── main/
        └── java/
            ├── internal/ (package)
            │   ├── ClassW.java
            │   └── ClassX.java
            └── general/ (package)
                └── ClassY.java

ProjectB
└── src/
    └── main/
        └── java/
            └── consumer/ (package)
                └── ClassZ.java

If you stay on the traditional classpath, there is currently no way to achieve both of these at the same time:

  1. Classes in the internal package are available throughout ProjectA
  2. Those same classes are hidden from ProjectB

The current top-level access modifiers in Java — public and package-private (no explicit modifier) — do not provide this level of control.

  1. public: visible to everything and everyone
  2. package-private (no explicit modifier): visible only within the internal package

If you wanted to reuse that code in the general package, there is currently no good way to do it cleanly.


How C#/.NET and JPMS solve it

First, you need to understand the recommended unit of deployment.

1) Post-JPMS Java world

JAR files are the unit of deployment, and Java recommends that a single JAR file contain a single module (module-info.java).

One project = one JPMS module / JAR file

Despite popular belief, shaded/uber JARs are not recommended deployment units according to modern Java paradigms, and they basically break security and access control expectations.

2) C#/.NET world

DLL files are the unit of deployment. That is it.

One project = one DLL file


So how do C# and JPMS solve the issue?

1) C#/.NET

C# has the internal access modifier. This makes any class marked internal accessible throughout the entirety of ProjectA, while effectively hiding it from other project/DLL files.

2) Java with JPMS

In Java with JPMS, you create a module-info.java file at the source root:

src/main/java/module-info.java

Inside module-info.java, you simply do not export your internal package at all. This hides all the classes inside that package from other projects/modules/JAR files.

So now, you can safely declare your internal classes with the public access modifier, use them throughout your entire ProjectA, and still effectively hide them from other projects/modules/JAR files.


Why didn’t Java just add an internal modifier?

If I had to guess, I would say the reason is this:

JAR files were traditionally just ZIP files, nothing more than that. They existed as a kind of directory that the JVM could search through to find the necessary classes. JAR files were not a unit of separation. The JVM basically “flattens” packages from JAR files, effectively merging them in practice. They mostly existed for better code organization.

That is why issues such as split packages could occur, since different JARs can theoretically contain packages with the same name.

DLL files, on the other hand, are a unit of deployment and actually exist as a unit of separation, as mentioned before. The .NET runtime is fully aware of DLL files as a container of code, and treats separate DLL files as truly separate.

If I had to guess, the way JPMS works now is to give JAR files that same kind of container treatment, where the presence of a module-info.java file indicates that the contents inside that JAR file belong to a separate, identifiable container.

Could they have made the JAR file itself a container without the nuisance of module-info.java, and thus made an internal access modifier work in Java? Maybe. Why they did not do that, I do not know. That is a question for the JDK developers.


My complaints about JPMS

Despite all the awesomeness of JPMS, I do have some complaints about it:

1) Lack of demonstration and explanation

The biggest problem is the lack of demonstration and explanation from the JDK developers. It took me learning an entirely separate programming language (C#) to actually understand that JPMS, at its core, is essentially achieving what the internal access modifier achieves in C#.

Whenever someone asks what the benefits of JPMS are for an end-user developer, the JDK devs most often talk about how it helped modularize the JDK and/or enabled jlink and jpackage support. Those are big deals, but they do not precisely explain the benefits to an end-user developer.

2) The build tool ecosystem

This is a major one. I really feel like JPMS was developed in a vacuum without taking build tools into consideration, as OpenJDK does not have an official build tool.

Because of this, we end up in a weird situation where we have to declare dependencies twice: once in the build tool script, and again in module-info.java. That is not a huge deal, but it is non-idiomatic for beginners.

Despite this, Gradle has excellent support for JPMS, as evidenced here:

https://docs.gradle.org/current/userguide/java_library_plugin.html#declaring_module_dependencies

https://docs.gradle.org/current/userguide/application_plugin.html#sec:application_modular

Gradle has precise dependency scope mappings for all four JPMS requires variants, natively provides ways to understand things such as the main class for a JPMS application, and also runs JPMS applications on the module path.

It is a shame that most Java developers look down on Gradle and prefer Maven, because for a little bit of complexity, Gradle gives you better compliance with JPMS.

3) Ecosystem issues

This is not a fault of JPMS, but the majority of third-party libraries in the ecosystem have enormous amounts of legacy code that are not easily transitioned to JPMS. Spring is the biggest one that comes to mind. They use all kinds of hacks such as custom class loaders and whatnot to make their framework work, and I would only expect that Spring would never fully move onto JPMS.


Conclusion

Honestly speaking, JPMS is not that bad. Once you use it in a properly structured project, it is easy to realize the benefits gained from using it.

I would honestly suggest educating yourself on it a little bit (if the OpenJDK devs do not), and using it for all new greenfield projects. JPMS is the future of the Java platform, and that is where we are headed, especially with features such as AOT caching.


r/java • • Jun 14 '26

A plugin for coding agents that is developed in Java

0 Upvotes

I thought this might be of interest to Java users and programmers. I've been developing a plugin for coding agents (Claude etc) and using Java 25 for it. It includes a CLI tool which is packaged as a Jlink image (built with IBM's Semeru JDK).

Its size is ~60 MB zipped, and ~100 MB unzipped (including SCC cache):
$ du -sh  ~/.cache/shipsmooth/0.3.21/*
8.0K    ~/.cache/shipsmooth/0.3.21/bin
87M     ~/.cache/shipsmooth/0.3.21/runtime
15M     ~/.cache/shipsmooth/0.3.21/scc

I find this trade-off acceptable for now, given the convenience and familiarity of developing in Java. Currently it works with Claude, Gemini and Codex. Developed on Linux but also tested out on Mac and Windows (briefly).

Details of how it's packaged are at: https://github.com/bitkentech/shipsmooth/blob/main/packaging/README.md. Its github repo is: https://github.com/bitkentech/shipsmooth/.


r/java • • Jun 12 '26

Telescope - a Java 25 DSL where one chain crosses the record ↔ bean hop

31 Upvotes

I have been building telescope for the better part of a year. It started as a converter registry, drifted into a port of Scala Monocle that nobody could read, and finally settled as a single-class Java 25 DSL for deep updates and bidirectional conversion between records and POJOs.

We are close to 1.0 and I would like feedback from people who use MapStruct. Two demos below.

Deep update across nested lists

Company normalized = Telescope.of(Company.class)
    .each(Company::departments)
    .each(Department::teams)
    .each(Team::users)
    .field(User::email)
    .update(company, String::toLowerCase);

Read it left to right. The chain descends into every user across every team across every department and returns a new Company with all those emails lower-cased. The input is never mutated. MapStruct generates A → B converters; it has no write terminal for "modify this field at a deep path." This is the use case that started the project Monocle-style lens ergonomics in Java without a Scala detour. The optic lattice (Iso, Lens, Prism, Affine, Traversal, Getter, Setter, Fold) sits under the DSL; users never name it, and it is what lets the focus type shift cleanly at each .each/.field hop.

Hop between records and Java Beans

That was the obvious use case. Here is the one I am most happy with, a chain that crosses the record/bean paradigm boundary and narrows on the bean side mid-flight:

Telescope.of(Order.class)
    .field(Order::payment)                   // record-side: Telescope<Order, Payment>
    .then(PaymentBridge.BRIDGE)              // paradigm hop into the bean world (codegen)
    .as(CreditCardEntity.class)              // sealed narrow on the BEAN side
    .field(CreditCardEntity::getCardNumber)  // bean-side field optics
    .update(order, n -> n.substring(0, n.length() - 4) + "****")

The user-facing declarations, record side and bean side, no extra wiring:

// Record side
public record Order(
    Long id,
    String orderNumber,
    Customer customer,
    /* ...shippingAddress, billingAddress, lineItems, giftWrap, metadata... */
    Payment payment
) {}

@Bridge(PaymentEntity.class)
public sealed interface Payment permits CreditCard, PayPal, BankTransfer {}

@Bridge(CreditCardEntity.class)
public record CreditCard(String cardNumber, String holder, int expiryYear) implements Payment {}

@Bridge(PayPalEntity.class)
public record PayPal(String email, String token) implements Payment {}

@Bridge(BankTransferEntity.class)
public record BankTransfer(String iban, String bic) implements Payment {}

// Bean side - JavaBean shape, no annotations. Same sealed permits structure.
public sealed interface PaymentEntity permits CreditCardEntity, PayPalEntity, BankTransferEntity {}

public final class CreditCardEntity implements PaymentEntity {
    private String cardNumber;
    private String holder;
    private int expiryYear;

    public CreditCardEntity() {}

    public String getCardNumber() { return cardNumber; }
    public void setCardNumber(String cardNumber) { this.cardNumber = cardNumber; }
    public String getHolder() { return holder; }
    public void setHolder(String holder) { this.holder = holder; }
    public int getExpiryYear() { return expiryYear; }
    public void setExpiryYear(int expiryYear) { this.expiryYear = expiryYear; }
}
// PayPalEntity and BankTransferEntity follow the same JavaBean shape.

That is the entire surface telescope needs to emit PaymentBridge.BRIDGE. Records on one side, JavaBeans on the other, four annotations on the record root and its permits, no hand-rolled forward/backward, no per-case setter/getter wiring, no MapStruct-style mapper interface declaration.

I do not think MapStruct can express this. Its model is one source-to-target conversion per @Mapper, with no operator for after a record java bean hop, narrow to a subtype, then descend further, then round-trip back. The optics under the DSL is what lets the composition type-check.

Honest performance

Codegen @Bridge runs within ~1.5× of MapStruct on flat objects (≈5 ns vs ≈4 ns) and at parity on deep trees where list iteration dominates. The runtime Telescope.mapper(...) path, the one where you do not write any annotations, is 30-100× slower than MapStruct on small objects. That is the cost of declarative ergonomics, and I would rather quote the gap than not mention it. If the hot path matters, codegen is one @Bridge away.

Links

  • Repo, with examples.
  • The long-form story of how this got from Monocle to one type.

r/java • • Jun 11 '26

Spring Modulith 2.1 GA released

Thumbnail spring.io
19 Upvotes

r/java • • Jun 11 '26

Strictland - contract and compatibility testing for your messages

Thumbnail github.com
5 Upvotes

I just released a new Contract Testing library. It's called Strictland. Why did I do it if there are tools in this space?

If you've used consumer-driven contract testing, the usual shape is to run both the provider and the consumer, record the consumer's expectations against a mock, verify the provider against them, and share those contracts through a broker.

In Strictland, I took a smaller, simpler approach. It serialises message in a normal unit test and saves the output as a snapshot file that you commit together with your code.

The test fails when the serialised shape changes, or when it contains a breaking change - up to you to specify expectations. A check confirms that an older and a newer version of the message can still read each other's data (or the other way round).

Because it's only serialisation and a file, the setup stays small:

- The checks are ordinary unit tests in your existing suite, so there's no broker, schema registry, or mock service to run, and nothing to start in Docker.

- The contract is the serialised JSON committed next to the test, so a format change appears in a normal diff and is reviewed like any other code.

- You write the check beside the message it covers and get the answer in the same fast feedback loop as the rest of your tests. The check uses your application's own serializer, so the snapshot is the exact bytes you ship.

- Strictland checks the serialised shape of a message and whether its versions stay compatible. It doesn't exercise a live exchange between running services, so it complements that kind of tooling rather than replacing it.

Strictland checks the serialised shape of a message and whether its versions stay compatible. It doesn't exercise a live exchange between running services, so it complements that kind of tooling rather than replacing it.

This approach served me well in my past projects. It's not as powerful as popular tooling, but it's also much simpler to start catching our mistakes.

I always handcrafted such a tool in my projects, but finally decided to make it properly.


r/java • • Jun 10 '26

Eclipse 2026-06 is out

87 Upvotes

r/java • • Jun 10 '26

JEP 401 being merged into JDK 28?

Thumbnail mail.openjdk.org
178 Upvotes

r/java • • Jun 10 '26

Wargaming Activity: What happens when Oracle dies?

60 Upvotes

I thought of making this a blog post but genuinely I don't have much intelligent to say aside from making sure people know what's going on.

The basics are, as I understand:

- Oracle has taken on a ton of debt to build data centers

- There are essentially only two possible customers for these data centers, openai and anthropic

- Oracle does not see a dime until the data centers are up, operational, and in use by a client that can pay the bills.

- if, say, openai does not actually become bigger than Google, Amazon, and Microsoft combined they will not be able to pay the bills.

- this is an existential threat to Oracle as a company.

So with that in mind - relevant to our interests here Oracle owns the trademark for Java and employs many of the people who work on its development. Oracle dying or even just refocusing remaining capital away from Java would certainly have effects on the development of Java as a whole

I just want to open the floor for if anyone else wants to talk about this. I don't think it's as simple as "someone else will do it," and if there's anything to be done it's probably worth figuring that out ahead of time.

(like if anyone in the audience works at a big company that won't die in this scenario, is there any background work to do for scooping up trademarks and people. if assets actually do go on auction do we make a non-profit to do the same, etc.)


r/java • • Jun 11 '26

An HTTP call inside a @Transactional method quietly took down my whole API under load

Thumbnail reddit.com
0 Upvotes

r/java • • Jun 10 '26

Made Minecraft in the Terminal (only java, no extra libs)

Post image
270 Upvotes

I created a version of Minecraft that runs entirely in command in the terminal.
The entire project is entirely contained in one file, with over 1500 lines of code.
Made with java, no extra libraries.
Supports textures, randomly generated trees, water, and terrain, and block placing/mining.
This is inspired by the Minecraft.c repo.

Github: https://github.com/DaRealNeonCoder/MinecraftInTerminal


r/java • • Jun 10 '26

GlassFish 8.0.3 released!

Thumbnail omnifish.ee
16 Upvotes

r/java • • Jun 10 '26

Roseau 0.6.0: Breaking change detection for Java libraries

Thumbnail alien-tools.github.io
27 Upvotes

Hi r/java,

Over the past three years, we've been working on Roseau, an open-source tool for detecting breaking API changes between two versions of a Java library and we've just released v0.6.0. We use it to track the introduction of breaking changes in popular libraries and make cool visualizations like tracking API evolution and breaking changes across 14 years of Guava history. It can be included in any Maven or Gradle build, and we're already part of JUnit's build.

Roseau is similar to other tools like japicmp and revapi: it detects both binary-breaking and source-breaking changes and can analyze JAR files directly. However, Roseau also supports analyzing Java source code directly. That means you can compare the latest released version of your library against the current source tree in a PR or local branch. It's also very fast and, in our tests, tends to be much more accurate than the other tools. We support all Java features up to Java 25. Reports are generated in HTML, MD, CSV, JSON formats.

Try it

The fastest way is to download the standalone archive for your platform from the latest release:

https://github.com/alien-tools/roseau/releases/latest

unzip roseau-0.6.0-linux-x86_64.zip
export PATH="$PWD/roseau-0.6.0/bin:$PATH"
$ roseau --diff --v1 library-1.0.0.jar --v2 library-2.0.0.jar
Breaking changes found: 3 (2 binary-breaking, 2 source-breaking)
✗ com.pkg.A TYPE_REMOVED
  ✗ binary-breaking ✗ source-breaking
  → com/pkg/A.java:4
⚠ com.pkg.B.f FIELD_NOW_STATIC
  ✗ binary-breaking ✓ source-compatible
  → com/pkg/B.java:18
★ com.pkg.C TYPE_NEW_ABSTRACT_METHOD [toOverride()]
  ✓ binary-compatible ✗ source-breaking
  → com/pkg/C.java:210
$ roseau --diff --v1 com.example:lib:1.0.0 --v2 /path/to/v2/src/main/java
[...]

For Maven builds, there is also a plugin that runs in the verify phase and checks the current version against a chosen baseline:

<plugin>
  <groupId>io.github.alien-tools</groupId>
  <artifactId>roseau-maven-plugin</artifactId>
  <version>0.6.0</version>
  <configuration>
    <baselineCoordinates>com.example:my-library:1.2.3</baselineCoordinates>
    <failOnIncompatibility>true</failOnIncompatibility>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>check</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Links

I'm curious to hear your thoughts about it. Don't hesitate to give it a try and let us know how it goes.


r/java • • Jun 10 '26

I've been quietly growing a small, fluent Java JSON library to reduce boilerplate - looking for honest feedback and feature ideas

7 Upvotes

A few years ago I got tired of writing multiple lines of code just to pull one property out of JSON. So I wrote a tiny wrapper around Jackson to enable fully fluent handling of JSON data. It's been running in production at work ever since.

Over the years I kept adding features as new use cases hit me: path-based reads, presence checks, removal, a Spring Boot starter. Most of the design decisions were driven by "this would have saved me a few lines of code today."

Just a short example:

String state = Json.parse(json).string("customer.address.state");

I finally got around to writing about it, and looking for honest feedback. Also, any feature ideas that would genuinely cut boilerplate in your everyday Java/JSON code are much appreciated. Curious what others reach for and how you wish it worked.

I wrote a small post about it on dev.to: https://dev.to/yupzip/spring-boot-4-jackson-3-less-json-boilerplate-with-yupzip-json-46la

Repo: https://github.com/yupzip/yupzip-json


r/java • • Jun 09 '26

Created a simple, minimal Canvas Application in JavaFX

Post image
190 Upvotes

After like a year finally getting back to JavaFX, decided to make an excalidraw inspired app for fun. It's a very minimal canvas app with basic features.

Source code : ExplainFX

Features

  1. Drawing
  2. Create Squares and Circles
  3. Text
  4. Vary stroke size/font size
  5. Copy, paste, duplicate, lock, delete objects
  6. Move the objects once they are drawn
  7. Move camera via mouse

Please let me know if you have any questions!


r/java • • Jun 09 '26

Performance Improvements in JDK 26

Thumbnail inside.java
80 Upvotes

r/java • • Jun 10 '26

Testcontainer alternatives to managing Docker containers through Java for a UI app?

0 Upvotes

I am trying to build an LLM lab that can orchestrate and interact with various LLMs, Tools and a Vector DB locally.

For the SDK and API calls I am using Langchain4j which is straightforward.

However for the dependencies I am currently just managing it manually with docker-compose before starting the application.

I am now wondering if I can use Testcontainers for starting and stopping Docker containers but it feels wrong as its a test library.

--Edit--

There is a Docker Java library but not well advertised on Google

https://github.com/docker-java/docker-java

It might be no issue really to run long lived containers, but interested if there are any alternative libraries or ways to solve this?


r/java • • Jun 09 '26

Exploiting GPU Tensor Cores from Java using Babylon [Juan Fumero]

Thumbnail openjdk.org
26 Upvotes

r/java • • Jun 08 '26

Is anyone using eclipse anymore?

160 Upvotes

r/java • • Jun 09 '26

Kronotop: A distributed multi-model database built on FoundationDB, implemented in Java.

Thumbnail github.com
5 Upvotes

r/java • • Jun 10 '26

How do we handle the sheer flood of AI-generated code? Can this help?

Thumbnail javapro.io
0 Upvotes

r/java • • Jun 08 '26

How is everyone handling their Spring CVEs? New article Broadcom’s Tanzu Division Prepares Historic Spring Patch Release Amid AI Security Surge

10 Upvotes

r/java • • Jun 08 '26

OxyJen v0.5: a deterministic Graph Runtime(DAG) for AI workflows in Java

5 Upvotes

I've been working on an open-source runtime engine for Java, OxyJen, which went from sequential chain to complete Directed Acyclic Graph. Most AI frameworks push you toward hidden execution and agent loops. OxyJen v0.5 goes the other way: workflows are explicit graphs with typed nodes, bounded concurrency, clear failure paths, and deterministic control flow. It is not just an LLM helper anymore.

What v0.5 gives you:

- SchemaNode - structured extraction with schema validation and retry

- LLMNode - direct model-backed steps

- LLMChain - retries, fallback, timeouts, and backoff

- BranchNode - mutually exclusive routing

- RouterNode - multi-path fan-out

- ParallelNode - deterministic pure-Java parallel work

- MergeNode - explicit fan-in

- MapNode - batch workflows over collections

- GatherNode - collection, filtering, and aggregation

- RouteEdge and FailureEdge - explicit router and failure semantics

- connectAnyFailureTo(...) - failure routing, makes recovery, fallback, and error aggregation as part of the graph itself.

The graph DSL lets you build workflows with fluent routing, conditional edges, loops, failure paths, and batch/concurrent flows. Real execution logic lives in code as a graph, not buried inside a sequential chain.

ParallelExecutor runs the DAG with a shared ExecutionRuntime where concurrency, timeouts, and failure behavior controlled centrally.

Small example:

```java

javaGraph graph = GraphBuilder.named("doc-flow")

.addNode("extract", SchemaNode.builder(Document.class)

.model(chain).schema(schema).build())

.addNode("router", RouterNode.<Document>builder()

.route("summary", d -> true, "summaryPrompt")

.route("risk", d -> true, "riskPrompt")

.route("actions", d -> true, "actionsPrompt")

.build("router"))

.addNode("checks", ParallelNode.<Document, String>builder()

.task("amount", d -> hasAmount(d) ? "ok" : "missing")

.task("date", d -> hasDate(d) ? "ok" : "missing")

.build("checks"))

.addNode("merge", new MergeNode.Builder()

.expect("summary", "risk", "actions", "checks")

.build("merge"))

.connect("extract", "router")

.connect("router", "summaryPrompt")

.connect("router", "riskPrompt")

.connect("router", "actionsPrompt")

.connect("checks", "merge")

.connect("summary", "merge")

.connect("risk", "merge")

.connect("actions", "merge")

.build();

```

If you need any of these, OxyJen has it:

- Structured extraction with typed outputs -> SchemaNode

- Fan-out to multiple parallel analyses -> RouterNode

- Deterministic local checks -> ParallelNode

- Explicit fan-in of partial results -> MergeNode

- Batch processing over collections -> MapNode + GatherNode

- Graph-level failure routing -> connectAnyFailureTo(...)

Built for document extraction, support triage, batch enrichment, compliance pipelines, and any complex DAG system where AI components need to stay observable, bounded, and predictable.

This version took around 3 months to build. There's a lot not covered here. I would suggest going through the docs to know what this version and Oxyjen are trying to be.

GitHub: https://github.com/11divyansh/OxyJen

Docs: https://github.com/11divyansh/OxyJen/blob/main/docs/v0.5.md

You can check out the examples to understand how the system works. It's marked with comments for better understanding.

Examples with full logs: https://github.com/11divyansh/OxyJen/tree/main/src/main/java/examples

It's still very early stage any feedback/suggestions on the API or design is appreciated.


r/java • • Jun 07 '26

#JavaNext Language Features

Thumbnail youtu.be
79 Upvotes

If you've been following along, most of the new features have already been discussed, but the genuinely new stuff is at 43:55, about arrays.


r/java • • Jun 07 '26

GraphCompose v1.7.0 — declarative PDF layout engine for Java, now on Maven Central

Post image
20 Upvotes

GraphCompose is an MIT-licensed Java library for generating designed PDFs from a semantic DSL. I last posted here at v1.5. Since then it moved to Maven Central, dropped its baseline to Java 17, and shipped two feature cycles — v1.6 "expressive" and now v1.7 "geometric".

Position

Most Java PDF libraries pick one of two extremes: iText for low-level page primitives (you compute every coordinate by hand) or JasperReports for XML-template-driven layout (declarative-ish, but the design loop runs through external tooling). GraphCompose sits in the middle — a Java DSL describes the document semantically, the engine resolves geometry, pagination, and rendering deterministically, and PDFBox does the actual draw calls. The engine isn't married to PDFBox: layout resolves to backend-neutral fragments, and an Apache POI DOCX backend ships for callers who need an editable file.

What changed since v1.5

- On Maven Central now: io.github.demchaav:graph-compose:1.7.0, GPG-signed, with hosted Javadoc on javadoc.io. The old JitPack coordinate still resolves for anyone pinned to v1.6.5 and earlier.

- Java 17 baseline (was Java 21). This came from an outside contributor who wanted to use it at work and backported it — which also refreshed the dependency set and brought Java 25 compatibility.

- Templates v2 (v1.6): CV and cover-letter presets rebuilt on a theme → layout → components → spec model instead of one-off composer classes.

- A binary-compatibility gate (japicmp) runs on every PR, so accidental public-API breaks fail the build.

v1.7 "geometric" highlights

The theme is geometry as a first-class authoring primitive — shapes you used to fake with font glyphs or raster images now draw from vertex geometry.

- Inline shape runs: dot, diamond, triangle, star, polygon drawn on the paragraph baseline. Skill-rating dots (Java ●●●●○), custom bullets and status markers no longer depend on a font shipping the glyph.

- Inline checkboxes, plus composite multi-layer inline figures (a frame + tick) measured and placed as one unit.

- Polygon geometry: arrow / chevron / checkmark / plus / regularPolygon, with directional arrows for "Step 1 → Step 2" bullets, and swappable checkmark / arrow styles.

- Per-corner rounded containers — round each corner independently (rounded left, square right) without a clip-path-parent workaround.

- Dashed / dotted lines, semantic timelines, filled heading bands, vertical text seating, and JetBrains Mono bundled in the default font library.

Additive only — zero breaking changes from 1.6.x.

Architecture

Layout runs in two passes: a layout graph resolves geometry first, rendering consumes the resolved fragments. That separation is what makes deterministic snapshot testing practical — layout state is stable across runs and machines, so visual regression tests catch design drift before pagination noise. 1144 green tests at this release.

Links

Repo: https://github.com/DemchaAV/GraphCompose

Maven Central: https://central.sonatype.com/artifact/io.github.demchaav/graph-compose

Examples gallery (runnable examples with committed PDF previews): https://github.com/DemchaAV/GraphCompose/tree/main/examples

v1.7.0 release notes: https://github.com/DemchaAV/GraphCompose/releases/tag/v1.7.0

Java 17+, PDFBox 3, MIT license, on Maven Central (io.github.demchaav:graph-compose:1.7.0).

Background

I built this solo over about half a year of free time. It started as something small — I wanted to generate my own CV in pure Java without hand-placing every coordinate — and the coordinate-tweaking loop annoyed me enough that it turned into a layout engine. I open-sourced it to develop it in the open rather than in a drawer.

So I'm genuinely interested in how people here see the direction: if you generate documents or reports from Java, does describing the document semantically and letting the engine resolve layout match how you'd want to work — or do you prefer staying closer to the page model for control? And for those who've shipped this kind of thing in production, what would GraphCompose need before it'd be worth trying in your stack?