From 33f2f0045e133f197e5f4fa359bb6198fdf0a32c Mon Sep 17 00:00:00 2001 From: Manoel Campos Date: Mon, 19 Oct 2026 20:57:06 -0300 Subject: [PATCH] Add the Maven Central snapshot repository and move to Java 25 - 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 --- .github/workflows/maven.yml | 4 ++-- pom.xml | 24 +++++++++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index dc59978..d10d16a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,8 +14,8 @@ jobs: - name: Setup Java uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: 21 + distribution: 'corretto' + java-version: 25 cache: 'maven' - name: Maven Build run: mvn -B package diff --git a/pom.xml b/pom.xml index 5880b6c..3c2e1ed 100755 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,26 @@ GitHub Issues + + + + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + + + + org.openjdk.jmh @@ -104,7 +124,7 @@ maven-compiler-plugin 3.14.0 - 17 + 25 org.openjdk.jmh @@ -141,8 +161,6 @@ -XDcompilePolicy=simple - - -XDaddTypeAnnotationsToSymbol=true --should-stop=ifError=FLOW -Xplugin:ErrorProne ${errorprone.args} -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked=true