play_routes(name, generate_forwards_router, generate_reverse_router, include_play_imports, namespace_reverse_router, play_routes_compiler, routes_generator, routes_imports, srcs)
Compiles Play routes files templates to Scala sources files.
name |
Name; required
A unique name for this target. |
generate_forwards_router |
Boolean; optional
Whether the forward router should be generated. Setting to false may help generate only the reverse routes |
generate_reverse_router |
Boolean; optional
Whether the reverse router should be generated. Setting to false may reduce compile times if it's not needed. |
include_play_imports |
Boolean; optional
If true, include the imports the Play project includes by default. |
namespace_reverse_router |
Boolean; optional
Whether the reverse router should be namespaced. Useful if you have many routers that use the same actions. |
play_routes_compiler |
Label; optional |
routes_generator |
String; optional
The full class of the routes generator, e.g., `play.routes.compiler.InjectedRoutesGenerator` |
routes_imports |
List of strings; optional
Additional imports to import to the Play routes |
srcs |
List of labels; required
Play routes files |
PlayRoutesInfo(srcjar)
srcjar |
The source jar created by this target. |