JinwooHwang opened a new pull request, #117:
URL: https://github.com/apache/geode-examples/pull/117
## 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**: 5.5 to 7.3.3
- Updated main wrapper in `gradle/wrapper/gradle-wrapper.properties`
- Updated webapp wrapper in
`sessionState/webapp/gradle/wrapper/gradle-wrapper.properties`
- **Java**: 8 to 17
- Updated source and target compatibility across all subprojects
- Updated GitHub Actions workflow to use Java 17
### Apache Geode Version
- **Geode**: 2.1.+ (snapshots) to 2.0.0
- Updated `geodeVersion` in `gradle.properties`
### Gradle Configuration Modernization
Replaced all deprecated Gradle configurations:
- `compile` to `implementation`
- `testCompile` to `testImplementation`
- `providedCompile` to `compileOnly`
- `archiveBaseName` to `archiveFileName`
- `baseName` to `distributionBaseName`
- `configurations['runtime']` to `configurations.runtimeClasspath`
### Plugin Updates
- **Spotless**: 3.0.0 to 6.11.0
- Updated plugin ID: `com.diffplug.gradle.spotless` to
`com.diffplug.spotless`
- Updated API: `eclipseFormatFile()` to `eclipse().configFile()`
- **Rat**: 0.6.0 to 0.8.0
- **Download**: 3.1.2 to 5.0.1
### Lucene Dependency Updates
- **Lucene**: 6.4.1 to 9.12.3
- Added explicit `spatial4j:0.8` dependency
- Fixed API compatibility issues in `luceneSpatial`:
- `RAMDirectory` to `ByteBuffersDirectory`
- `totalHits` to `totalHits.value`
### Modified Files
- `.github/workflows/gradle.yml`
- `build.gradle`
- `gradle.properties`
- `gradle/release.gradle`
- `gradle/spotless.gradle`
- `gradle/wrapper/gradle-wrapper.properties`
- `lucene/build.gradle`
- `luceneSpatial/build.gradle`
-
`luceneSpatial/src/test/java/org/apache/geode/examples/luceneSpatial/SpatialHelperTest.java`
- `micrometerMetrics/build.gradle`
- `sessionState/webapp/build.gradle`
- `sessionState/webapp/gradle/wrapper/gradle-wrapper.properties`
## Testing
All builds and tests pass successfully:
- `./gradlew build` - passes
- `./gradlew test` - all tests pass
- `./gradlew spotlessApply` - code formatting works
- Verified with Geode 2.0.0
## Rationale
- **Java 17**: Current LTS version with long-term support
- **Gradle 7.3.3**: Modern dependency management and better performance
## Breaking Changes
None for end users. All examples maintain the same functionality.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]