Assets jar not included in classpath for play framework plugin


I’m creating a Play Framework application, using the gradle plugin. I’ve managed to run the ‘dist’ task and package the resulting artifacts in a Docker image by ADDing the main.tar that is created.

However, the startup script defines a classpath with everything in the ‘lib’ direcory except for the assets .jar file (which contains all of the static HTML content such as CSS and media files) created by the ‘createPlayAssetsJar’ step. If I manually add that to the classpath in the script, the assets become available since the actual file is there in the distribution. Is there something specific one has to do to have this automatically added to the classpath during build?

Thanks in advance for any pointers.