-
Notifications
You must be signed in to change notification settings - Fork 77
[GEODE-10530] Migrate to Gradle 7.3.3, Java 17, and Geode 2.0.0 #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update Gradle wrapper from 5.5 to 7.3.3 - Upgrade Java compatibility from 8 to 17 - Update Apache Geode version to 2.0.0 - Replace all deprecated Gradle configurations (compile->implementation, etc.) - Update Lucene dependencies to 9.12.3 and fix API compatibility - Update Spotless plugin to 6.11.0 - Fix test failures with Lucene 9 API changes (RAMDirectory->ByteBuffersDirectory) - Update CI workflow to Java 17
Configure GitHub Actions to use orgapachegeode-1146 staging repository via -PgeodeRepositoryUrl parameter. Geode 2.0.0 is currently in release candidate phase and not yet publicly available in Maven Central.
Use .get() for lazy property evaluation to ensure jar files are named correctly (e.g., async.jar instead of malformed filenames).
|
@sboorlagadda, all checks have passed. Thank you for your support. |
|
We are ready to merge, @sboorlagadda . |
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: runAll --console=plain --no-daemon | ||
| arguments: runAll -PgeodeRepositoryUrl=https://repository.apache.org/content/repositories/orgapachegeode-1146 --console=plain --no-daemon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to keep them on this branch first and then again update it when 2.0.0? is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @sboorlagadda . Thank you for your review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I see you already updated to 2.1.0 last week with this commit #2a1186e
So you want this update to 2.0.0 RC so that people can verify examples work (part of the release check) and then go back to 2.1.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarification. I am approving it now. But I want to go back and see in the past how this is done. Because it is always the case that the develop will be rolled up before the release etc. LGTM for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your approval @sboorlagadda
Overview
This PR modernizes the geode-examples project by upgrading to current LTS versions of Java and Gradle, and updating to Apache Geode 2.0.0.
Changes
Build Tool Upgrades
gradle/wrapper/gradle-wrapper.propertiessessionState/webapp/gradle/wrapper/gradle-wrapper.propertiesApache Geode Version
geodeVersioningradle.propertiesGradle Configuration Modernization
Replaced all deprecated Gradle configurations:
compiletoimplementationtestCompiletotestImplementationprovidedCompiletocompileOnlyarchiveBaseNametoarchiveFileNamebaseNametodistributionBaseNameconfigurations['runtime']toconfigurations.runtimeClasspathPlugin Updates
com.diffplug.gradle.spotlesstocom.diffplug.spotlesseclipseFormatFile()toeclipse().configFile()Lucene Dependency Updates
spatial4j:0.8dependencyluceneSpatial:RAMDirectorytoByteBuffersDirectorytotalHitstototalHits.valueModified Files
.github/workflows/gradle.ymlbuild.gradlegradle.propertiesgradle/release.gradlegradle/spotless.gradlegradle/wrapper/gradle-wrapper.propertieslucene/build.gradleluceneSpatial/build.gradleluceneSpatial/src/test/java/org/apache/geode/examples/luceneSpatial/SpatialHelperTest.javamicrometerMetrics/build.gradlesessionState/webapp/build.gradlesessionState/webapp/gradle/wrapper/gradle-wrapper.propertiesTesting
All builds and tests pass successfully:
./gradlew build- passes./gradlew test- all tests pass./gradlew spotlessApply- code formatting worksRationale
Breaking Changes
None for end users. All examples maintain the same functionality.