How to enable assertions in the Play framework

It took a bit of digging around to figure out how to enable Java assertions for the Play framework, but the answer was simple in the end:

$ export JAVA_OPTS=-ea

This sets the (quasi-standard) JAVA_OPTS environment variable which is incorporated into the SBT launch command.