Skip to content

Conversation

@tchaikov
Copy link

Update minio-java install script to support JUnit 5, which is required by minio-java >= 8.6.0 (commit 044c33c481c67d7061b1f99ed0ea39fc06ac306b).

Changes:

  • Update SPOTBUGS_VERSION from 4.2.2 to 4.8.6 (as per minio-java upgrade)
  • Replace JUnit 4 (4.12) with JUnit 5 (5.11.3)
  • Download JUnit 5 dependencies:
    • junit-jupiter-api: Test annotations
    • junit-jupiter-engine: Test execution engine
    • junit-platform-commons: Platform utilities
    • junit-platform-engine: Test engine API
    • apiguardian-api: API version annotations
    • opentest4j: Test failure exceptions

This matches the dependencies used in minio-java's build.gradle and allows Mint to compile and run tests with current minio-java versions.

Removed the conditional JUnit 4/5 logic since Mint always fetches the latest minio-java version from Maven, which will always be >= 8.6.0.

Update minio-java install script to support JUnit 5, which is required
by minio-java >= 8.6.0 (commit 044c33c481c67d7061b1f99ed0ea39fc06ac306b).

Changes:
- Update SPOTBUGS_VERSION from 4.2.2 to 4.8.6 (as per minio-java upgrade)
- Replace JUnit 4 (4.12) with JUnit 5 (5.11.3)
- Download JUnit 5 dependencies:
  - junit-jupiter-api: Test annotations (@test, @beforeeach, etc.)
  - junit-jupiter-engine: Test execution engine
  - junit-platform-commons: Platform utilities
  - junit-platform-engine: Test engine API
  - apiguardian-api: API version annotations
  - opentest4j: Test failure exceptions

This matches the dependencies used in minio-java's build.gradle and
allows Mint to compile and run tests with current minio-java versions.

Removed the conditional JUnit 4/5 logic since Mint always fetches the
latest minio-java version from Maven, which will always be >= 8.6.0.

Signed-off-by: Kefu Chai <[email protected]>
@rraulinio
Copy link
Member

Currently working on a bigger upgrade, so most likely this will be covered there already. cc @harshavardhana

@tchaikov
Copy link
Author

@rraulinio hi Raul, thanks for the info. probably we can keep this pull request open until the bigger upgrade lands? so it can help other developers who try to build and use mint from the source instead of from the prebuilt container image?

@tchaikov
Copy link
Author

superseded by #399

@tchaikov tchaikov closed this Nov 11, 2025
@tchaikov tchaikov deleted the minio-java-with-junit5 branch November 11, 2025 06:39
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.

2 participants