Since Play Framework 2.3 assets are packaged into one jar archive file. I would like to publish this jar automatically with the project, i.e. upon publish
or publishLocal
I want the assets jar to be published as well.
How to achieve that?
Since Play Framework 2.3 assets are packaged into one jar archive file. I would like to publish this jar automatically with the project, i.e. upon publish
or publishLocal
I want the assets jar to be published as well.
How to achieve that?
After
inspect tree dist
I managed to find the taskplayPackageAssets
that generates the assets file:A naive solution might be to attach the assets webjar as is generated by
playPackageAssets
topublishLocal
task's artifacts. Add the following tobuild.sbt
(the types are to show what you work with):Repeat it for the other tasks you want to exhibit similar behaviour.
I'm however quite doubtful it's the best solution.