Skip to content

Java 11 - #1

Merged
andreaTP merged 4 commits into
mainfrom
java-11
Aug 18, 2026
Merged

Java 11#1
andreaTP merged 4 commits into
mainfrom
java-11

Conversation

@andreaTP

Copy link
Copy Markdown

Description

Testing done

Submitter checklist

  • I have read and understood the CONTRIBUTING guide
  • I have run mvn license:update-file-header, mvn spotless:apply, pre-commit run -a, mvn clean install before opening the PR

Downgrade the compiler target and all dependencies that required Java 17+
so the SDK can be consumed by projects still on Java 11.

Key changes:
- Jackson 3.x (tools.jackson) -> Jackson 2.x (com.fasterxml.jackson)
- Caffeine 3.2 -> 3.1, Micrometer 1.17 -> 1.13
- JUnit 6 -> 5, Testcontainers 2 -> 1
- Convert 22 records to regular classes
- Remove sealed/permits from 5 class hierarchies
- Replace String.formatted(), Stream.toList(), HexFormat,
  switch expressions, pattern-matching instanceof, and text blocks
  with Java 11-compatible equivalents
- Add jackson-datatype-jsr310 for ZonedDateTime support
- CI matrix now includes Java 11
Rebrand from land.oras:oras-java-sdk to io.roastedroot:oras-java
for publishing the Java 11 fork from the roastedroot organization.

- Maven coordinates: io.roastedroot:oras-java:999-SNAPSHOT
- Java packages remain land.oras.* for easy upstream/fork switching
- Release workflow based on lumis4j (versions:set + central-publishing)
- Simplified profiles: removed sigstore, spdx, maven-release-plugin
- Removed distributionManagement (central-publishing handles it)
- NOTICE file with Apache 2.0 attribution to original ORAS project
- README rewritten with fork notice, new coordinates, attribution
- Deleted upstream-specific workflows (scorecard, updatecli, snapshots)
Spotless Maven Plugin 3.9.0 requires Java 17 to run. Move spotless
from default plugins to a JDK 17+ activated profile so Maven does
not attempt to load the plugin class on Java 11.
@andreaTP
andreaTP merged commit 9a5663f into main Aug 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant