Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2006

Spring Boot starter should log a warning if scoreDRL is used and spring-devtools are in the classpath

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 2020 Week 25-27 (from Jun 15)
    • NEW
    • NEW

      First prove that spring-devtools isn't compatible with constraints.drl

      Read this comment:
      https://stackoverflow.com/questions/61371336/optaplanner-solvermanager-bean-not-being-found-in-spring-application/61522211?noredirect=1#comment110010877_61522211

      It's in the docs, but docs are there to explain new features. Documenting pitfalls is less helpful than detecting them during coding.

      Requirements:
      In the spring boot starter, if the SolverConfig constains scoreDRL or scoreDRLFile (regardless if it was build automatically or if there is an actual xml file that declares those), AND if spring-devtools is in the classpath (do this without adding a dependency on it. A typical trick is Class.forName() throws or doesn't throw an Exception, but StackOverflow it for a more modern approach), then a log.warn("...") that devtools isn't compatible with it.

            jucui Julian Cui (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: