Skip to content

Add the Maven Central snapshot repository and move to Java 25 - #4

Merged
manoelcampos merged 1 commit into
masterfrom
snapshot-repository
Oct 20, 2026
Merged

manoelcampos merged 1 commit into
masterfrom
snapshot-repository

Conversation

@manoelcampos

@manoelcampos manoelcampos commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Related to cloudsimplus/cloudsimplus#575

Prepares the project to move to CloudSim Plus 9 (9.0.0-SNAPSHOT).

Changes

Snapshot repository

Adds the Maven Central snapshot repository (https://central.sonatype.com/repository/maven-snapshots/) to pom.xml, so the project can use CloudSim Plus -SNAPSHOT versions before they are released.

  • <releases> is disabled in this repository, so Maven only asks it for -SNAPSHOT versions. Final versions still come from Maven Central, without slowing them down.
  • To move to a final version later (such as 9.0.0), just remove -SNAPSHOT from the version.

Java 25

CloudSim Plus 9 is compiled for Java 25, so projects using it must also target Java 25.

  • pom.xml: <release>17</release> changed to <release>25</release>.
  • GitHub Actions (maven.yml): JDK 21 changed to JDK 25.
  • Removed the -XDaddTypeAnnotationsToSymbol=true compiler flag. Error Prone only needs it on JDK 21.
  • GitHub Actions use the Amazon Corretto JDK distribution, as the cloudsimplus project does, instead of adopt (deprecated in setup-java).

Not included

The project still uses a final CloudSim Plus version (8.5.1). Moving to 9.0.0-SNAPSHOT needs the snapshot to be published first, plus other changes listed in cloudsimplus/cloudsimplus#575.

Checks

mvn clean package passes locally on JDK 25. The generated classes are Java 25 bytecode (class file version 69).

🤖 Generated with Claude Code

@manoelcampos manoelcampos self-assigned this Oct 19, 2026
@manoelcampos manoelcampos changed the title Add the Maven Central snapshot repository Add the Maven Central snapshot repository and move to Java 25 Oct 19, 2026
- Add the Maven Central snapshot repository, enabling the use of
  CloudSim Plus SNAPSHOT versions before they are released.
  Final versions still come from Maven Central.
- Compile for Java 25 and build with JDK 25 in CI (maven.yml),
  since CloudSim Plus 9 requires Java 25.
- Remove -XDaddTypeAnnotationsToSymbol=true, which Error Prone only
  needs on JDK 21.
- Use the Amazon Corretto JDK distribution in GitHub Actions, as in the
  cloudsimplus project (adopt is deprecated in setup-java).

Related: cloudsimplus/cloudsimplus#575

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@manoelcampos
manoelcampos merged commit 46b8130 into master Oct 20, 2026
1 check passed
@manoelcampos
manoelcampos deleted the snapshot-repository branch October 20, 2026 11:40
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