{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/5823","repository_url":"https://api.github.com/repos/playframework/playframework","labels_url":"https://api.github.com/repos/playframework/playframework/issues/5823/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/5823/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/5823/events","html_url":"https://github.com/playframework/playframework/issues/5823","id":139083229,"number":5823,"title":"Move Twirl support into an AutoPlugin that is enabled by default and can be disabled","user":{"login":"dwijnand","id":344610,"avatar_url":"https://avatars.githubusercontent.com/u/344610?v=3","gravatar_id":"","url":"https://api.github.com/users/dwijnand","html_url":"https://github.com/dwijnand","followers_url":"https://api.github.com/users/dwijnand/followers","following_url":"https://api.github.com/users/dwijnand/following{/other_user}","gists_url":"https://api.github.com/users/dwijnand/gists{/gist_id}","starred_url":"https://api.github.com/users/dwijnand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwijnand/subscriptions","organizations_url":"https://api.github.com/users/dwijnand/orgs","repos_url":"https://api.github.com/users/dwijnand/repos","events_url":"https://api.github.com/users/dwijnand/events{/privacy}","received_events_url":"https://api.github.com/users/dwijnand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-07T20:20:38Z","updated_at":"2016-03-09T10:02:04Z","closed_at":null,"body":"Similar to how one can opt out of Logback (by disabling the AutoPlugin), it would be nice to be able to opt out of Twirl and it's tree of dependencies.\r\n\r\nI particularly would like this as I want to define typed http clients in Scala which use compile-time DI and therefore never use Twirl, nor want to bring that to the dependency graph.\r\n\r\n### Are you looking for help?\r\n\r\nThis is a feature request, which I have discussed on the [developer mailing list](https://groups.google.com/forum/#!forum/play-framework-dev) (see [\"play-ws as a separate module\"](https://groups.google.com/forum/#!topic/play-framework-dev/tSPvfLrZM7U)).\r\n\r\n### Play Version (2.5.x / etc)\r\n\r\n2.6.x (or later)\r\n\r\n### API (Scala / Java / Neither / Both)\r\n\r\nI assume both, but I only have experience on the Scala side."},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/194218370","html_url":"https://github.com/playframework/playframework/issues/5823#issuecomment-194218370","issue_url":"https://api.github.com/repos/playframework/playframework/issues/5823","id":194218370,"user":{"login":"schmitch","id":1641401,"avatar_url":"https://avatars.githubusercontent.com/u/1641401?v=3","gravatar_id":"","url":"https://api.github.com/users/schmitch","html_url":"https://github.com/schmitch","followers_url":"https://api.github.com/users/schmitch/followers","following_url":"https://api.github.com/users/schmitch/following{/other_user}","gists_url":"https://api.github.com/users/schmitch/gists{/gist_id}","starred_url":"https://api.github.com/users/schmitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmitch/subscriptions","organizations_url":"https://api.github.com/users/schmitch/orgs","repos_url":"https://api.github.com/users/schmitch/repos","events_url":"https://api.github.com/users/schmitch/events{/privacy}","received_events_url":"https://api.github.com/users/schmitch/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T10:02:04Z","updated_at":"2016-03-09T10:02:04Z","body":"the routes file gets generated with a twirl template:\r\nhttps://github.com/playframework/playframework/blob/master/framework/src/routes-compiler/src/main/twirl/play/routes/compiler/inject/forwardsRouter.scala.twirl\r\n\r\nYou can't disable SbtTwirl, since the routes file will not be compiled then.\r\nYou could actually run play without Twirl or any sbt plugin at all, however than you need to use the manual router:\r\n\r\nhttps://www.playframework.com/documentation/2.5.x/ScalaEmbeddingPlay You just need to have the following dependencies:\r\n\r\n    \"com.typesafe.play\" %% \"play\" % \"2.5\",\r\n    \"com.typesafe.play\" %% \"play-netty-server\" % \"2.5\",\r\n    \"com.typesafe.play\" %% \"play-logback\" % \"2.5\",\r\n\r\nif twirl gets disabled than you would need to create your routes by yourself. Or you don't use the play plugin and loose the auto reload."}}