Java 17 SDK for ORAS, built as one Maven module. Sources are in src/main/java/land/oras/.
mvn clean install— full build, formatting, license, Javadoc, and testsmvn clean install -Pquick-build— skip tests and checksmvn test -Dtest=RegistryTest— run one test classmvn verify— integration tests (*ITCase); Docker or Podman requiredmvn javadoc:javadoc— Javadoc; warnings fail the build
- Before finishing:
mvn spotless:applyandmvn license:update-file-header. - Public API requires warning-free Javadoc.
- Use JSpecify
@Nullable/@NonNull; do not introduce APIs newer than Java 17. - Keep model classes immutable, add
with*()copies, and retain@JsonPropertyOrderfor stable serialized bytes. - Security checks use the resolved reference after rewrites and mirror selection.
- Architecture — packages, core types, models, authentication
- Security model — resolution order, mirrors, policy, credentials
- Testing — test types, containers, parallelism, environment locks