May 2, 2023
3
min

How do I upgrade from OptaPlanner to Timefold?

Geoffrey De Smet
Keep up with Timefold
Product updates, optimization insights, and stories from the builders behind PlanningAI.
Share

Upgrade from OptaPlanner to Timefold Solver Community Edition today. It only takes 2 minutes.

Run the command below to upgrade your code automatically. Do a test run of the solver and commit the changes. If it doesn’t work, just revert it instead and submit an issue. We’ll fix it with the highest priority.

MavenGradle

mvn org.openrewrite.maven:rewrite-maven-plugin:6.15.0:run -Drewrite.recipeArtifactCoordinates=ai.timefold.solver:timefold-solver-migration:1.25.0 -Drewrite.activeRecipes=ai.timefold.solver.migration.ToLatest

Note: this command is not actively updated. Check our documentation for the command with the latest version numbers.

Timefold Solver 1.x does not support scoreDRL, nor is it upgraded automatically. If you’re still using scoreDRL from OptaPlanner 7.x, please upgrade to Constraint Streams first.

Why would I switch from OptaPlanner to Timefold?

Because it’s better:

  1. Continuity, responsiveness, know-how and stability: The entire Timefold company is focused on building the best possible planning optimization software and helping you succeed with it. Timefold Solver has many bugfixes and security fixes since it forked from OptaPlanner. We also added powerful new features and enhancements.
  1. Performance: Timefold is twice as fast as OptaPlanner out-of-the-box.
  1. Distribution size: Cloud deployments love lightweight components. Timefold has all the features of OptaPlanner, but a jar-with-dependencies assembly of the same Hello World program is 41% smaller:
  1. Documentation: We are constantly improving the documentation and fine-tuning the quickstarts. It’s easier to get started with Timefold than with OptaPlanner.

How do the OptaPlanner and Timefold versions relate?

  • Timefold 0.8.x is a replacement for OptaPlanner 8. It supports Java 11, Java 17, Spring Boot 2, Quarkus 2 and Java EE 8. It has reached its End of Life and is no longer supported.
  • Timefold 1.x is a replacement for OptaPlanner 9. It supports Java 17+, Spring Boot 3, Quarkus 3 and Jakarta EE 10.

Is Timefold Backward Compatible with OptaPlanner?

Yes, except for the branding changes.

Run timefold-migration to automatically change all your code locally. It’s a quick, single command for Maven or Gradle. Then test those changes and commit them. Alternatively, apply the following changes manually.

Timefold Solver 1.x is backward compatible with OptaPlanner 8.x, except that:

  • Minimum Java 17 (LTS). Java 21 (LTS) and the latest Java version are also supported.
  • The Maven/Gradle GAVs changed:
    • The groupId changed from org.optaplanner to ai.timefold.solver.
    • The artifactIds changed from optaplanner-* to timefold-solver-*.
    • ArtifactIds containing persistence- changed from optaplanner-persistence-* to timefold-solver-*.
      • For example, optaplanner-persistence-jackson changed to timefold-solver-jackson.
  • The import statements changed accordingly:
    • import org.optaplanner…​; changed to import ai.timefold.solver…​;.
    • import org.optaplanner.persistence…​; changed to import ai.timefold.solver…​; too.
  • The JEE dependencies changed from javax to jakarta to accommodate Spring 3 and Quarkus 3.
    • This is the same difference as between OptaPlanner 8.x and OptaPlanner 9.x.
  • The OptaPlannerJacksonModule class is now called TimefoldJacksonModule.
  • The deprecated scoreDRL support is removed, because Drools with its transitive dependencies have been removed entirely.
  • The unsecure module persistence-xstream is removed, because of old, unresolved CVEs in XStream.
  • The deprecated, undocumented ScoreHibernateType has been removed because of Jakarta. Use JPA’s ScoreConverter instead.

All other deprecated code remains, to make upgrading easy.

Related blogs
June 25, 2026
0
min

Same coffee, same shoes, same plan: the beauty of no surprises

Optimization
Explainable AI
June 23, 2026
0
min

Timefold Raises $13M as AI Drives Demand for Routing and Scheduling APIs

Press
June 1, 2026
0
min

How upskilling technicians unlocks field service routing efficiency

Explainable AI
FSR
Platform
May 4, 2026
0
min

How much fuel can route optimization actually save?

FSR
Scheduling intelligence
Platform
May 1, 2026
0
min

Three optimizations to make your Timefold Solver faster

Solver
Open-source
April 24, 2026
0
min

Timefold Solver 2.0 upgrade: 15 projects, under 10 minutes

Solver
Open-source

When scheduling works, everything works.

Less waste. More control. Teams that trust the plan.