Skip to content

feat: upgrade TinkerPop to 3.8.1 and support JDK 21#3078

Open
xf20054658 wants to merge 3 commits into
apache:masterfrom
xf20054658:upgrade/tinkerpop-3.8.1-jdk21
Open

feat: upgrade TinkerPop to 3.8.1 and support JDK 21#3078
xf20054658 wants to merge 3 commits into
apache:masterfrom
xf20054658:upgrade/tinkerpop-3.8.1-jdk21

Conversation

@xf20054658

Copy link
Copy Markdown

Changes

1. Upgrade TinkerPop 3.5.1 → 3.8.1

  • Update tinkerpop.version and GREMLIN_VERSION
  • Add gremlin-util dependency
  • Adapt all API breaking changes:
    • BiPredicatePBiPredicate
    • AggregateGlobalStep/AggregateLocalStepAggregateStep
    • HasContainerHolderHasContainerHolder<S, E> (generic)
    • MutatingConfiguring
    • RequestMessage/ResponseMessage/ResponseStatusCode package migration
    • Tokens class removed → string literals
    • StoreTest removed
  • Upgrade maven-compiler-plugin 3.1 → 3.11.0
  • Upgrade lombok 1.18.30 → 1.18.34

2. Support JDK 21

  • Update maven.compiler.source/target from 11 to 21
  • Add JDK 21 to CI matrix (keep JDK 11)
  • Upgrade actions/setup-java from v3 to v4
  • Upgrade Docker base images to eclipse-temurin:21

Verification

  • All 40 modules compile successfully on JDK 21
  • mvn clean compile -DskipTests passed

Related Files

27 files changed, detailed changelog in hugegraph-server/update.md

1. Upgrade TinkerPop from 3.5.1 to 3.8.1:
   - Update tinkerpop.version in pom.xml files
   - Update GREMLIN_VERSION constant in CoreVersion.java
   - Add gremlin-util dependency
   - Adapt API breaking changes:
     * BiPredicate -> PBiPredicate (ConditionP, Condition)
     * AggregateGlobalStep/AggregateLocalStep -> AggregateStep
     * HasContainerHolder -> HasContainerHolder<S, E>
     * Mutating -> Configuring (HugePrimaryKeyStrategy)
     * RequestMessage/ResponseMessage migrated to gremlin.util.message
     * Tokens constants replaced with string literals
     * StoreTest removed (ProcessBasicSuite)
   - Upgrade maven-compiler-plugin 3.1 -> 3.11.0
   - Upgrade lombok 1.18.30 -> 1.18.34

2. Support JDK 21 (keep JDK 11 compatibility):
   - Update maven.compiler.source/target from 11 to 21
   - Add JDK 21 to CI matrix in all workflows
   - Upgrade actions/setup-java from v3 to v4
   - Upgrade Docker base images from eclipse-temurin:11 to eclipse-temurin:21

All 40 modules compile successfully on JDK 21.
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. api Changes of API ci-cd Build or deploy dependencies Incompatible dependencies of package gremlin TinkerPop gremlin labels Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Changes of API ci-cd Build or deploy dependencies Incompatible dependencies of package gremlin TinkerPop gremlin size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant